-
Notifications
You must be signed in to change notification settings - Fork 22
支持 GitHub 风格的 Markdown 提示块(Alert)语法 #344
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
Conversation
5f88a50 to
99b07e6
Compare
|
目前文档内没有大面积使用 [!NOTE] 等语法,引入新的自动脚本会增加维护负担,但不能带来可观的收益。 |
我不认同这个观点,没有使用这种语法是因为当前不支持渲染该语法,如果使用了页面会渲染出一个很丑的引用块。 恰恰相反,我认为当前文档正需要这种 alert 用于提示,如果不引入想要实现相同的需求则需要使用如下方式: > xxxxxxxxxxx
{: .notice--success }然而这种语法并不被 GitHub 的 Markdown 所支持。 此外,为避免提高维护成本,本脚本并未依赖正则替换,而是在页面渲染完成后通过操作 HTML 字符串进行处理。我认为这样的方式并不会增加太多的维护负担。 |
|
我觉得这个并不会增加多少维护成本,而且这样也挺方便的,我觉得可以考虑一下? |
行。那 @neveler 你点一下 Restore branches,然后我再看看? |
|
重新打开 PR 竟然必须要发送一段文本??? |
支持 GitHub 风格的 Markdown 提示块(Alert)语法
预览
https://neveler.github.io/HMCL-docs/PR13/test.html