File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 "3.1.4" : " messages/3.1.4.md" ,
4242 "3.1.5" : " messages/3.1.5.md" ,
4343 "3.1.6" : " messages/3.1.6.md" ,
44- "3.1.7" : " messages/3.1.7.md"
44+ "3.1.7" : " messages/3.1.7.md" ,
45+ "3.1.8" : " messages/3.1.8.md"
4546}
Original file line number Diff line number Diff line change 1+ # MarkdownEditing 3.1.8 Changelog
2+
3+ Your _ MarkdownEditing_ plugin is updated. Enjoy new version. For any type of
4+ feedback you can use [ GitHub issues] [ issues ] .
5+
6+ ## Bug Fixes
7+
8+ * Fix GFM auto-link termination
9+ * Add support for pandoc attributes in reference definitions (#712 )
10+
11+ ## New Features
12+
13+ ## Changes
14+
15+ [ issues ] : https://github.com/SublimeText-Markdown/MarkdownEditing/issues
Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ class MdeUnsavedViewNameSetter(MdeViewEventListener):
5757 MAX_NAME = 50
5858
5959 def on_modified (self ):
60- if self .view .file_name () is not None or not self .view .settings ().get ("set_unsaved_view_name" , True ):
60+ if self .view .file_name () is not None or not self .view .settings ().get (
61+ "set_unsaved_view_name" , True
62+ ):
6163 return
6264
6365 name = first_heading_text (self .view )
Original file line number Diff line number Diff line change @@ -2654,25 +2654,44 @@ contexts:
26542654 3 : punctuation.definition.reference.end.markdown
26552655 4 : punctuation.separator.key-value.markdown
26562656 push :
2657- - link-def-end
2657+ - link-def-meta
2658+ - link-def-attr
26582659 - link-def-title
26592660 - link-def-url
26602661
2661- link-def-end :
2662+ link-def-meta :
26622663 - meta_include_prototype : false
26632664 - meta_scope : meta.link.reference.def.markdown
26642665 - include : immediately-pop
26652666
2667+ link-def-attr :
2668+ - match : \{
2669+ scope : punctuation.definition.attributes.begin.markdown
2670+ set : link-def-attr-body
2671+ - match : ^(?!\s*{)|(?=\S)
2672+ pop : 1
2673+
2674+ link-def-attr-body :
2675+ - meta_scope : meta.attributes.markdown
2676+ - include : tag-attributes
2677+
26662678 link-def-title :
26672679 - match : ^(?!\s*["'(])
26682680 pop : 1
26692681 - match : (?=["'(])
26702682 set :
2671- - expect-eol
2683+ - expect-attr-or- eol
26722684 - link-title
2685+ - match : (?=\{)
2686+ pop : 1
26732687 - match : \S.+
26742688 scope : invalid.illegal.expected-eol.markdown
26752689
2690+ expect-attr-or-eol :
2691+ - match : (?=\{)
2692+ pop : 1
2693+ - include : expect-eol
2694+
26762695 link-def-url :
26772696 - match : <
26782697 scope : punctuation.definition.link.begin.markdown
@@ -3438,6 +3457,7 @@ contexts:
34383457 scope : invalid.illegal.attribute-name.markdown
34393458
34403459 tag-attr-meta :
3460+ - meta_include_prototype : false
34413461 - meta_scope : meta.attribute-with-value.markdown
34423462 - include : immediately-pop
34433463
Original file line number Diff line number Diff line change @@ -2765,6 +2765,41 @@ Foo
27652765| ^ punctuation.separator.key-value.markdown
27662766| ^^^^ markup.underline.link.markdown
27672767
2768+ ## https://custom-tests/link-reference-definitions/with-attributes
2769+
2770+ [ link] : /url {#id .class width=30}
2771+ | ^^^^^^^^^^^^^^^^^^^^^ meta.link.reference.def.markdown meta.attributes.markdown
2772+
2773+ [ link] : /url (description) {#id .class width=30}
2774+ | ^^^^^^^^^^^^^^^^^^^^^ meta.link.reference.def.markdown meta.attributes.markdown
2775+
2776+ [ link] : /url "description" {#id .class width=30}
2777+ | ^^^^^^^^^^^^^^^^^^^^^ meta.link.reference.def.markdown meta.attributes.markdown
2778+
2779+ [ link] :
2780+ /url
2781+ {#id .class width=30}
2782+ | ^^^^^^^^^^^^^^^^^^^^^ meta.link.reference.def.markdown meta.attributes.markdown
2783+
2784+ [ link] :
2785+ /url
2786+
2787+ {#id .class width=30}
2788+ | ^^^^^^^^^^^^^^^^^^^^^ - meta.link - meta.attributes
2789+
2790+ [ link] :
2791+ /url
2792+ "description"
2793+ {#id .class width=30}
2794+ | ^^^^^^^^^^^^^^^^^^^^^ meta.link.reference.def.markdown meta.attributes.markdown
2795+
2796+ [ link] :
2797+ /url
2798+ "description"
2799+
2800+ {#id .class width=30}
2801+ | ^^^^^^^^^^^^^^^^^^^^^ - meta.link - meta.attributes
2802+
27682803## https://custom-tests/link-reference-definitions/in-block-quotes
27692804
27702805> [ foo ] : /url " description "
You can’t perform that action at this time.
0 commit comments