Skip to content

Commit a3baa20

Browse files
authored
Merge pull request #219 from Sawtaytoes/patch-1
Fixed Markdown wrapping when line-wrapping enabled
2 parents a1034a8 + 4f83d00 commit a3baa20

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

syntaxes/naomi.md1.sublime-syntax

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,11 @@ contexts:
2727
entry:
2828
- include: Packages/Naomi/syntaxes/md1/header.sublime-syntax
2929
- include: Packages/Naomi/syntaxes/md1/code-block.sublime-syntax
30-
- match: ""
30+
- match: |-
31+
(?x)^
32+
(?= [ ]{,3}>
33+
| ([ ]{4}|\t)(?!$)
34+
| [#]{1,6}\s*+
35+
| [ ]{,3}(?<marker>[-*_])([ ]{,2}\k<marker>){2,}[ \t]*+$
36+
)
3137
pop: true

0 commit comments

Comments
 (0)