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

the AST of comment, superscript , and subscript and spoiler #8

Open
evpeople opened this issue Sep 15, 2024 · 2 comments
Open

the AST of comment, superscript , and subscript and spoiler #8

evpeople opened this issue Sep 15, 2024 · 2 comments

Comments

@evpeople
Copy link

evpeople commented Sep 15, 2024

Should we make the comment,superscript ,subscript similar to attachModifier? As it stands, for extension development, a significant amount of work is required to filter out the entire content of the comment.

I test on the following content


   %This is a comment, and you never see it in your exported output.%
   This is ^superscript^ (it won't render properly in Neovim).
   This is ,subscript,   (same as above).

it shows as blow

Paragraph([Token(Special('%')), Token(Text("This")), Token(Whitespace), Token(Text("is")), Token(Whitespace), Token(Text("a")), Token(Whitespace), Token(Text("comment")), Token(Special(',')), Token(Whitespace), Token(Text("and")), Token(Whitespace), Token(Text("you")), Token(Whitespace), Token(Text("never")), Token(Whitespace), Token(Text("see")), Token(Whitespace), Token(Text("it")), Token(Whitespace), Token(Text("in")), Token(Whitespace), Token(Text("your")), Token(Whitespace), Token(Text("exported")), Token(Whitespace), Token(Text("output")), Token(Special('.')), Token(Special('%')), Token(Whitespace), Token(Text("This")), Token(Whitespace), Token(Text("is")), Token(Whitespace), Token(Special('^')), Token(Text("superscript")), Token(Special('^')), Token(Whitespace), Token(Special('(')), Token(Text("it")), Token(Whitespace), Token(Text("won")), Token(Special('\'')), Token(Text("t")), Token(Whitespace), Token(Text("render")), Token(Whitespace), Token(Text("properly")), Token(Whitespace), Token(Text("in")), Token(Whitespace), Token(Text("Neovim")), Token(Special(')')), Token(Special('.')), Token(Whitespace), Token(Text("This")), Token(Whitespace), Token(Text("is")), Token(Whitespace), Token(Special(',')), Token(Text("subscript")), Token(Special(',')), Token(Whitespace), Token(Special('(')), Token(Text("same")), Token(Whitespace), Token(Text("as")), Token(Whitespace), Token(Text("above")), Token(Special(')')), Token(Special('.'))])
@evpeople
Copy link
Author

This is a spoiler: !org-mode is a bozo!, to see the content you either enter insert mode on this line (good luck) or toggle the concealer off.

The spoiler has the same problem or feature

@evpeople evpeople changed the title the AST of comment, superscript , and subscript the AST of comment, superscript , and subscript and spoiler Sep 15, 2024
@benlubas
Copy link
Contributor

Yeah, these should all behave like attached mods, b/c they are attached mods

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

No branches or pull requests

2 participants