Skip to content

Integration bug: vim-prettier removes text #665

@artkpv

Description

@artkpv

Thank you for the tool and your work!

When I run this tool, https://github.com/prettier/vim-prettier, :Prettier on a file like:

# My title

Lorem ipsum

*****

Text after line. 

Some links like [link](link.com).

It removes all the text after the horizontal line, "*****".

Expected: no removal of text, and the formatting is made by the prettier tool.

Note. When I run just prettier from CLI it preserves the text. When I uninstall vim-markdown plugin and run :Prettier it preserves the text.

Version: 8f6cb3a

Notes. I think it has something to do with that Prettier inserts there '-----' which are treated as headers by my folding,i.e. I see folding functionality though accordingly to CommonMark standard those should not be headers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions