Merged
Conversation
新增配置项 `fix_single_dollar_block`,用于控制是否将单独一行的 `$ ... $` 转换为 `$$ ... $$`, 以提高 Pandoc 对 LaTeX 公式的识别准确率。同时支持修复行内公式中 `$` 前后多余的空格问题。
Owner
|
不是哥们,你也太能写了吧,一天一个pr,不是哥们 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
非标准 LaTeX 格式支持
增加了对非标准 Markdown/LaTeX 公式的实验性支持,主要解决以下两种情况:
$(可能包含缩进),现自动转换为标准$$块。$ L $的行内公式,现自动去除两侧多余空格(转为$L$),以符合 Pandoc 解析标准。没有采用lua方法处理,主要是考虑误伤概率和实现复杂性大幅上升。
效果对比
测试用例:原 Markdown 内容
点击展开查看完整测试 MD 文件