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

<>付きのURLのリンクをparseしてtoStringすると<>の情報が消える #83

Open
marihachi opened this issue Oct 9, 2021 · 1 comment · May be fixed by #126
Open

<>付きのURLのリンクをparseしてtoStringすると<>の情報が消える #83

marihachi opened this issue Oct 9, 2021 · 1 comment · May be fixed by #126

Comments

@marihachi
Copy link
Contributor

リンクのASTノードは、中身のURLを<>で囲んでいたかどうかの情報を持っていないため、
以下のようなリンクをparseしてtoStringすると<>が消えてしまう。

パーサ入力

[テスト](<https://example.com/テスト>)

toString結果

#82 の修正が前提。

[テスト](https://example.com/テスト)
@marihachi
Copy link
Contributor Author

linkノードのurlプロパティにはURLの文字列だけ含めるようになってるけど、
URLの形式が2種類ある今となっては、文字列じゃなくてurlノードを突っ込んだほうが良い気がしてきた。

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 a pull request may close this issue.

1 participant