Package Exports
- marked-completed
- marked-completed/marked.min.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (marked-completed) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
marked completed
该插件来自于对 marked 的二次开发, 增加对以下语法的支持
- TOC
[TOC] - emoji
:small: - mark
==mark== - sup
^sup^ - sub
~sub~ - ins
++ins++ - s
~~s~~ - inline katex
$\underbrace{a+b+\dots+n}_{m2}$ - katex
$$\underbrace{a+b+\dots+n}_{m2}$$ - colorFont
\color{red}{红色文字}、\color{red|4|黑体|0.4}{红色文字4号黑体字40%透明度}、\color{red||黑体}{红色文字黑体}、
添加配置项
-
emojiSource自定义展示的emoji图片源, 比如设置为xxx.com/img/, 当你输入:small:时, 则通过xxx.com/img/small.png显示对应的emoji -
emoji匹配到emoji时, emoji的映射表, 比如{small:'😊'}, 当你输入:small:则渲染出 😊 -
langLineNumber添加一个标注于显示代码行号的类名, 比如设置为true -
langToolbar在代码块的输出中添加一个功能栏, 比如设置为['copy']