Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown is line-breaking by letter instead of by word #200

Open
Sawtaytoes opened this issue Jan 14, 2019 · 1 comment
Open

Markdown is line-breaking by letter instead of by word #200

Sawtaytoes opened this issue Jan 14, 2019 · 1 comment
Labels

Comments

@Sawtaytoes
Copy link
Contributor

For whatever reason, Naomi's Markdown is breaking lines at the letter instead of by the word. I used other Markdown extensions in the past and didn't have this issue so I dunno what's going on.

image

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium.
@borela borela added the bug label Jan 20, 2019
@Sawtaytoes
Copy link
Contributor Author

Sawtaytoes commented Feb 22, 2019

The fix is to change match in entry to this instead of "":

  entry:
    - include: Packages/Naomi/syntaxes/md1/header.sublime-syntax
    - include: Packages/Naomi/syntaxes/md1/code-block.sublime-syntax
    - match: |-
        (?x)^
        (?= [ ]{,3}>
        | ([ ]{4}|\t)(?!$)
        | [#]{1,6}\s*+
        | [ ]{,3}(?<marker>[-*_])([ ]{,2}\k<marker>){2,}[ \t]*+$
        )
      pop: true

Why? I have absolutely no clue, but that's what MarkdownEditing does in their code, and that simple change fixes the issue.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants