Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义 markdown-it 扩展不支持? #250

Open
SilvaQ opened this issue Dec 24, 2021 · 0 comments
Open

自定义 markdown-it 扩展不支持? #250

SilvaQ opened this issue Dec 24, 2021 · 0 comments

Comments

@SilvaQ
Copy link

SilvaQ commented Dec 24, 2021

https://github.com/shd101wyy/mume/blob/19cb4e68a199c14cee19a08f17f85749a98eb06b/src/markdown-engine.ts#L269

不知道是我没找到入口还是确实是存在这个问题,我在使用这个库的时候需要对markdown-it 进行扩展,但是我没找到支持自定义markdown-it 插件的功能。

建议:

  • Engine的初始化参数里暴露一个markdown-it 配置项使得可以做到自定义(像vue-press)
  • 或者吧现在的md对象暴露出来,去掉私有
  • 再或者提供一个extendMarkdownIt的方法,使得访问内部md对象或者直接吧参数传递到md.use上
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant