mfm.js
mfm.js copied to clipboard
ASTをtoStringした時に元の文字列と一致するようにする
可逆性のあるASTが生成される方が良さそう。
対象 (随時追加)
- [ ] <>付きURLのリンク (#83)
- [ ] center
Hopefully #126 will address the first issue, but i'm not sure what center
means :sweat_smile:
Do you know if #126 would fix center
? Thank you!
@shibaobun 日本語で失礼します。
結論から言うと、#126 ではcenterの問題を解決しません。
<center>
構文は、前後に1つの改行がある場合でも無視します。
例えば、以下のような入力文字列では同じASTを生成します:
<center>abc</center>
<center>
abc
</center>
これらを区別すべきだろうと思って書きました。