Skip to content

Commit

Permalink
[markdown-it] support markdown-it-mark for mark ==
Browse files Browse the repository at this point in the history
  • Loading branch information
tamlok committed Jun 20, 2024
1 parent 74e20dc commit 743e63e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/data/core/vnotex.json
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@
"web/js/markdown-it/markdownItAnchor.umd.js",
"web/js/markdown-it/markdownItTocDoneRight.umd.js",
"web/js/markdown-it/markdown-it-implicit-figure.js",
"web/js/markdown-it/markdown-it-mark.min.js",
"web/js/markdownit.js"
],
"styles" : [
Expand Down
5 changes: 5 additions & 0 deletions src/data/extra/docs/en/markdown_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ This is the 1^st^ superscript.
This is the H~2~O subscript.
```

### Mark
```md
Let's mark the ==word==.
```

### Alert
```md
::: alert-info
Expand Down
5 changes: 5 additions & 0 deletions src/data/extra/docs/zh_CN/markdown_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ This is the 1^st^ superscript.
This is the H~2~O subscript.
```

### 标记
```md
Let's mark the ==word==.
```

### 警告
```md
::: alert-info
Expand Down
1 change: 1 addition & 0 deletions src/data/extra/extra.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<file>web/js/markdown-it/markdown-it-sup.min.js</file>
<file>web/js/markdown-it/markdown-it-task-lists.js</file>
<file>web/js/markdown-it/markdown-it-texmath.js</file>
<file>web/js/markdown-it/markdown-it-mark.min.js</file>
<file>web/js/markdown-it/markdown-it-inject-linenumbers.js</file>
<file>web/js/markdown-it/markdown-it-xss.min.js</file>
<file>web/js/markdown-it/markdown-it-implicit-figure.js</file>
Expand Down
3 changes: 3 additions & 0 deletions src/data/extra/web/js/markdown-it/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ v4.2.0

# [markdown-it-implicit-figures](https://github.com/arve0/markdown-it-implicit-figures)
v0.10.0

# [markdown-it-mark](https://github.com/markdown-it/markdown-it-mark)
v4.0.0
2 changes: 2 additions & 0 deletions src/data/extra/web/js/markdown-it/markdown-it-mark.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/data/extra/web/js/markdownit.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ class MarkdownIt extends VxWorker {
this.mdit.use(window.markdownitImplicitFigure, {
figcaption: true
});

this.mdit.use(window.markdownitMark);
}

registerInternal() {
Expand Down

0 comments on commit 743e63e

Please sign in to comment.