Desktop, Mobile: Resolves #1953: Update Markdown plugins: toc-done-right, anchor (#2005)

This change fixes a few issues with the toc plugin.
It now allows to set inline options. e.g. to set the max toc depth.

1. set toc depth to 2 levels

```
$<toc{"level":[1,2]}>
```

2. set toc depth to 3 levels and use an ordered list

```
$<toc{"level":[1,2,3],"listType":"ol"}>
```

/ref https://github.com/nagaozen/markdown-it-toc-done-right/issues/16

---

fixes #1953
fixes #1843
fixes https://discourse.joplinapp.org/t/set-depth-of-toc/2899
pull/2044/head
Helmut K. C. Tessarek 2019-10-30 06:18:31 -04:00 committed by Laurent Cozic
parent dece5d8de7
commit cdf6f9c436
2 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@
"mark.js": "^8.11.1",
"markdown-it": "^8.4.1",
"markdown-it-abbr": "^1.0.4",
"markdown-it-anchor": "^5.2.4",
"markdown-it-anchor": "^5.2.5",
"markdown-it-deflist": "^2.0.3",
"markdown-it-emoji": "^1.4.0",
"markdown-it-footnote": "^3.0.2",
@ -123,7 +123,7 @@
"markdown-it-multimd-table": "^3.2.0",
"markdown-it-sub": "^1.0.0",
"markdown-it-sup": "^1.0.0",
"markdown-it-toc-done-right": "^4.0.2",
"markdown-it-toc-done-right": "^4.1.0",
"md5": "^2.2.1",
"moment": "^2.22.2",
"multiparty": "^4.2.1",

View File

@ -23,7 +23,7 @@
"katex": "^0.10.0",
"markdown-it": "^8.4.0",
"markdown-it-abbr": "^1.0.4",
"markdown-it-anchor": "^5.2.4",
"markdown-it-anchor": "^5.2.5",
"markdown-it-deflist": "^2.0.3",
"markdown-it-emoji": "^1.4.0",
"markdown-it-footnote": "^3.0.2",
@ -33,7 +33,7 @@
"markdown-it-multimd-table": "^3.2.0",
"markdown-it-sub": "^1.0.0",
"markdown-it-sup": "^1.0.0",
"markdown-it-toc-done-right": "^4.0.2",
"markdown-it-toc-done-right": "^4.1.0",
"md5": "^2.2.1",
"moment": "^2.24.0",
"prop-types": "^15.6.0",