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

subscript text is converted to strikethrough #25

Closed
zkamvar opened this issue Aug 18, 2023 · 4 comments
Closed

subscript text is converted to strikethrough #25

zkamvar opened this issue Aug 18, 2023 · 4 comments

Comments

@zkamvar
Copy link

zkamvar commented Aug 18, 2023

I noticed this in ropensci/tinkr#99, but subscript text (at least with pandoc markdown) is converted to strikethrough (with two ~) on roundtrip between markdown -> XML -> markdown

commonmark::markdown_commonmark("H~2~O", extensions = TRUE)
#> [1] "H~~2~~O\n"

Created on 2023-08-18 with reprex v2.0.2

@jeroen
Copy link
Member

jeroen commented Aug 24, 2023

This looks like a bug in cmark, can you report in in https://github.com/github/cmark-gfm ?

@zkamvar
Copy link
Author

zkamvar commented Aug 25, 2023

It appears that this is a feature, not a bug 😞: github/cmark-gfm#71 (comment)

@jeroen jeroen closed this as completed Aug 25, 2023
@jeroen
Copy link
Member

jeroen commented Aug 25, 2023

Ok so there is nothing i can do :/

zkamvar added a commit to zkamvar/commonmark that referenced this issue May 9, 2024
@zkamvar
Copy link
Author

zkamvar commented May 9, 2024

It turns out there was a fix for this and that was to set the CMARK_OPT_STRIKETHROUGH_DOUBLE_TILDE option. I've opened #31 to address it.

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.

2 participants