Skip to content

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

@evpeople

Description

@evpeople

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('.'))])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions