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

支持md文档H1,H2,H3层级不规则 #38

Merged
merged 1 commit into from
Jan 16, 2019
Merged

Conversation

willionpan
Copy link
Contributor

此前版本中,必须依赖md文档中的h1,h2,h3是规则的,即h2必须在h1下,h3必须在h2下,对于不规则的场景不予支持。
提交的MR中支持到不规则场景,例如当遇到h2不在h1之下时,先生成一个空的h1节点,并将该h2放在这个空的h1节点下。在生成html的时候,忽略掉空节点

@zq99299
Copy link
Owner

zq99299 commented Jan 15, 2019

好的,今天我会看下

@zq99299 zq99299 self-requested a review January 16, 2019 01:38
@zq99299 zq99299 merged commit 1b02ab7 into zq99299:master Jan 16, 2019
zq99299 added a commit that referenced this pull request Jan 16, 2019
合并 #38 并修复 在 showLevel 下序号显示异常
@zq99299
Copy link
Owner

zq99299 commented Jan 16, 2019

v1.0.14 已发布

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

Successfully merging this pull request may close these issues.

2 participants