vivliostyle / vfm

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

Change hard line breaks to optional #50

Closed akabekobeko closed 3 years ago

akabekobeko commented 3 years ago

Goals

Change hard line breaks to optional.

VFM will be based on CommonMark/GFM and will add its own syntax. When overwriting the function of CommonMark/GFM, it is treated as an option. Do not overwrite the function until the option is specified.

Prior Art

CommonMark/GFM

Discussion

Discussed and approved in Developers meeting January 2021.

akabekobeko commented 3 years ago

38 の原因と予想される remark-breaks は CommonMark/GFM の挙動を上書きするため、オプション扱いとする予定。

akabekobeko commented 3 years ago

オプション案。

現行の実装では rehive-parse.ts にて MDAST 系を静的に定義しているが、オプションにより構成を変更可能とするように設計変更する必要がある。

akabekobeko commented 3 years ago

59 対応により buildProcessorTestingCode へ VFM オプションを渡せるようになったので改行の <br> 変換を想定したコードでは本 issue 対応時に必ず指定すること。

MurakamiShinyu commented 3 years ago

オプション案の修正案 (See: https://github.com/vivliostyle/vfm/pull/64#issuecomment-762961582):

akabekobeko commented 3 years ago

村上さん案を #64 に採用しました。v1.0.0-alpha.16 にて反映予定です