Skip to content
This repository was archived by the owner on Jun 8, 2024. It is now read-only.
This repository was archived by the owner on Jun 8, 2024. It is now read-only.

Trailing newlines are removed following markup #167

@mtoohey31

Description

@mtoohey31
  • I have tested with the master version of typstfmt and not just typst-lsp

Describe the bug

When formatting a document that ends in a normal paragraph, trailing newlines are removed. This doesn't appear to happen with other syntax elements, such as lists, headings, code blocks, etc.

To Reproduce

Format a document consisting of the following string: "_Glaciers_ form an important part of the earth's climate system.\n". After formatting, this produces: "_Glaciers_ form an important part of the earth's climate system." (note that the trailing newline is missing).

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