Skip to content

Code fences and backtick strings are not fully disambiguated #800

@lolbinarycat

Description

@lolbinarycat

consider the following cases:

1 ```

2 ``` 222 ```

According the dingus, 1 is a code fence that is not part of a fenced code block, and 2 is a code span.

Reading through the spec, it's not clear why this is, or why the following couldn't be interpreted as a code span:

3 ```
333
```

after all, this is a valid code span:

4 ``
444
``

If this is because "block structures take precedence over inline structures", and because code fences are a separate AST element that can exist detached from a code block, then why is 2 not parsed as two code fences? the spec does not say that a line cannot contain 2 code fences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions