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

ASTをtoStringした時に元の文字列と一致するようにする #125

Open
2 tasks
marihachi opened this issue Aug 7, 2022 · 2 comments
Open
2 tasks
Labels
enhancement New feature or request

Comments

@marihachi
Copy link
Contributor

marihachi commented Aug 7, 2022

可逆性のあるASTが生成される方が良さそう。

対象 (随時追加)

@marihachi marihachi added the enhancement New feature or request label Aug 7, 2022
@shibaobun
Copy link

Hopefully #126 will address the first issue, but i'm not sure what center means 😅
Do you know if #126 would fix center? Thank you!

@marihachi
Copy link
Contributor Author

@shibaobun
日本語で失礼します。

結論から言うと、#126 ではcenterの問題を解決しません。

<center>構文は、前後に1つの改行がある場合でも無視します。
例えば、以下のような入力文字列では同じASTを生成します:

<center>abc</center>

<center>
abc
</center>

これらを区別すべきだろうと思って書きました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants