Skip to content

A closing code fence followed by a tab is not recognised #292

@manowicz

Description

@manowicz

Hi,

I've run into an issue with the following Markdown file:

```
a
```\t
b

I've printed it verbatim for readability, but "\t" is the tab character, i.e. ASCHII code 9. The byte contents of this file are:

96, 96, 96, 10, 97, 10, 96, 96, 96, 9, 10, 98

md4c doesn't recognise the closing code fence, so it treats the whole file as a single code block.

To quote the CommonMark spec,

The closing code fence may be preceded by up to three spaces of indentation, and may be followed only by spaces or tabs, which are ignored.

This suggest that the closing fence should be recognised. Is this a bug, or am I misunderstanding something? I haven't found a flag that controls this behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions