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

キャプションや脚注の中の閉じ角括弧がエラーになる #69

Open
minoki opened this issue Feb 3, 2024 · 0 comments · May be fixed by #70
Open

キャプションや脚注の中の閉じ角括弧がエラーになる #69

minoki opened this issue Feb 3, 2024 · 0 comments · May be fixed by #70

Comments

@minoki
Copy link

minoki commented Feb 3, 2024

現状だと閉じ角括弧 ] を含むキャプションや脚注が、角括弧がエスケープされずに出力されてしまうようです。例えば、以下のMarkdownが

foo[^1]

[^1]: Hello [world]! `[GOODBYE]`

![This is \[caption\]](foo.png)

| foo | bar |
|-|-|
| baz | bazz |

Table: \[foo\]

以下のRe:VIEWに変換されます。

foo@<fn>{fn1}

//image[foo][This is [caption]]{
//}

//table[table1][[foo]]{
foo	bar
--------------
baz	bazz
//}

//footnote[fn1][Hello [world]! @<tt>{[GOODBYE]}]

期待する出力は以下です。

foo@<fn>{fn1}

//image[foo][This is [caption\]]{
//}

//table[table1][[foo\]]{
foo	bar
--------------
baz	bazz
//}

//footnote[fn1][Hello [world\]! @<tt>{[GOODBYE\]}]

閉じ角括弧を \] にエスケープする処理が必要なのではないかと思います。

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