Skip to content

Commit ca5fb54

Browse files
committed
Merge branch 'st4107-develop' into st4-develop
2 parents 6411600 + bb989ea commit ca5fb54

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎syntaxes/Markdown.sublime-syntax‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3253,7 +3253,7 @@ contexts:
32533253
footnote-def-continuation:
32543254
# if line starts with footnote or reference definition,
32553255
# rollback to previous line and pop footnote contexts.
3256-
- match: ^(?=[ \t]*{{reference_definition}})
3256+
- match: ^(?=[ \t]*(?:{{atx_heading}}|{{reference_definition}}))
32573257
fail: footnote-def-end
32583258
- match: ^
32593259
pop: 1

‎tests/syntax_test_markdown.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3279,6 +3279,10 @@ with a *second* line.
32793279
| ^ punctuation.definition.reference.end.markdown
32803280
| ^ punctuation.separator.key-value.markdown
32813281

3282+
# not-a-foot-note
3283+
| <- markup.heading.1.markdown punctuation.definition.heading.begin.markdown - meta.link
3284+
|^^^^^^^^^^^^^^^^^ markup.heading.1.markdown - meta.link
3285+
32823286
## https://custom-tests/footnote-reference-definitions/in-block-quotes
32833287

32843288
> [^1]: And that's the footnote.

0 commit comments

Comments
 (0)