From 743e63edbffd24286aa4735491e615ccca34747b Mon Sep 17 00:00:00 2001 From: Le Tan Date: Thu, 20 Jun 2024 23:11:55 +0800 Subject: [PATCH] [markdown-it] support markdown-it-mark for mark == --- src/data/core/vnotex.json | 1 + src/data/extra/docs/en/markdown_guide.md | 5 +++++ src/data/extra/docs/zh_CN/markdown_guide.md | 5 +++++ src/data/extra/extra.qrc | 1 + src/data/extra/web/js/markdown-it/README.md | 3 +++ src/data/extra/web/js/markdown-it/markdown-it-mark.min.js | 2 ++ src/data/extra/web/js/markdownit.js | 2 ++ 7 files changed, 19 insertions(+) create mode 100644 src/data/extra/web/js/markdown-it/markdown-it-mark.min.js diff --git a/src/data/core/vnotex.json b/src/data/core/vnotex.json index 84ac467e..98ef3826 100644 --- a/src/data/core/vnotex.json +++ b/src/data/core/vnotex.json @@ -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" : [ diff --git a/src/data/extra/docs/en/markdown_guide.md b/src/data/extra/docs/en/markdown_guide.md index 2d9c47f5..d9f4b393 100644 --- a/src/data/extra/docs/en/markdown_guide.md +++ b/src/data/extra/docs/en/markdown_guide.md @@ -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 diff --git a/src/data/extra/docs/zh_CN/markdown_guide.md b/src/data/extra/docs/zh_CN/markdown_guide.md index 582be7bc..31898b0e 100644 --- a/src/data/extra/docs/zh_CN/markdown_guide.md +++ b/src/data/extra/docs/zh_CN/markdown_guide.md @@ -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 diff --git a/src/data/extra/extra.qrc b/src/data/extra/extra.qrc index 0afe6cbf..ce782d0e 100644 --- a/src/data/extra/extra.qrc +++ b/src/data/extra/extra.qrc @@ -49,6 +49,7 @@ web/js/markdown-it/markdown-it-sup.min.js web/js/markdown-it/markdown-it-task-lists.js web/js/markdown-it/markdown-it-texmath.js + web/js/markdown-it/markdown-it-mark.min.js web/js/markdown-it/markdown-it-inject-linenumbers.js web/js/markdown-it/markdown-it-xss.min.js web/js/markdown-it/markdown-it-implicit-figure.js diff --git a/src/data/extra/web/js/markdown-it/README.md b/src/data/extra/web/js/markdown-it/README.md index 07b2dff8..ca6ccf4d 100644 --- a/src/data/extra/web/js/markdown-it/README.md +++ b/src/data/extra/web/js/markdown-it/README.md @@ -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 diff --git a/src/data/extra/web/js/markdown-it/markdown-it-mark.min.js b/src/data/extra/web/js/markdown-it/markdown-it-mark.min.js new file mode 100644 index 00000000..dc768ef0 --- /dev/null +++ b/src/data/extra/web/js/markdown-it/markdown-it-mark.min.js @@ -0,0 +1,2 @@ +/*! markdown-it-mark 4.0.0 https://github.com/markdown-it/markdown-it-mark @license MIT */ +!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).markdownitMark=n()}(this,(function(){"use strict";return function(e){function n(e,n){const t=[],o=n.length;for(let s=0;s