vivliostyle / vfm

⬇️ Open and extendable Markdown syntax and toolchain.
https://vivliostyle.github.io/vfm/#/vfm
Other
71 stars 12 forks source link

feat: Copy the section attributes from the heading, however the `id` will be moved #91

Closed akabekobeko closed 3 years ago

akabekobeko commented 3 years ago

8 のうち以下へ対応しました。

  1. Pandoc では属性の指定がある見出し(例 # Heading1 {#id1 .class1 key1=value1})で id は section 要素に、それ以外の属性は section 要素と h1-h6 要素の両方に出力される
    • 現状の vfm ではどの属性も section 要素だけに出力される。Pandoc 同様に h1-h6 要素にも出力されるほうがよいだろう

@MurakamiShinyu レビューをお願いします。

akabekobeko commented 3 years ago

@MurakamiShinyu hidden の提案を採用し、あわせてこのテストを追加しました。テストのほうに問題なければ approve をお願いします。