A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/remarkjs/remark/issues/75 below:

Emphasis takes precedence over inline code span · Issue #75 · remarkjs/remark · GitHub

Input:

Actual AST:

{
  "type": "paragraph",
  "children": [
    {
      "type": "emphasis",
      "children": [
        {
          "type": "text",
          "value": "`"
        }
      ]
    },
    {
      "type": "text",
      "value": "`_"
    }
  ]
}

Expected AST:

{
  "type": "paragraph",
  "children": [
    {
      "type": "emphasis",
      "children": [
        {
          "type": "inlineCode",
          "value": "_"
        }
      ]
    }
  ]
}

Commonmark:

Code span backticks have higher precedence than any other inline constructs except HTML tags and autolinks. Thus, for example, this is not parsed as emphasized text, since the second * is part of a code span: *foo*``.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4