Skip to content

A fenced code breaks the following heading #308

Description

@ant-222

Discount supports fenced code blocks. According to the documentation, they are turned on with -f fencedcode, but backtick'ed code blocks work without that option as well. Nor can they be turned off with -f nofencedcode. Is it expected behavior? If it is, it is not evident from the documentation.

Futhermore, with -f fencedcode, a backtick'ed code block breaks the following heading if no empty line intervenes. Compre the HTML that Discount renders with and without that option from the following input:

```
This is a code block.
```
# This is another header

I observe the above with:
discount 3.0.1.2 GHC=ENTITY.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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