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

Cannot Nest Rich Text Formatting #81

Open
subthedubdub opened this issue Feb 25, 2021 · 2 comments
Open

Cannot Nest Rich Text Formatting #81

subthedubdub opened this issue Feb 25, 2021 · 2 comments

Comments

@subthedubdub
Copy link

E.g. I would expect that */word/* would render as word (bold and emphasized). Instead is renders as /word/.

Issue is that inline markup (as defined in inline.ts tokenizer) does not tokenize delimiters. E.g. */word/* should be tokenized as
[*, \, word. \, *]. Instead it renders as a text.bold token with contents \word\.

@GuiltyDolphin
Copy link
Contributor

Support for nested rich text formatting is available in #104. Per the spec, code and verbatim do not support this, whilst bold, italics, etc. do.

@BlackGlory
Copy link
Contributor

It also does not support links:

*[[link]]*
{
  type: 'document'
, children: [
    {
      type: 'paragraph'
    , children: [
        {
          type: 'text.bold'
        , value: '[[link]]'
        }
      ]
    }
  ]
}

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.

3 participants