Browse Source

update markdown default notes separator to ignore inline occurances of 'notes:', closes #1915, closes #2762

Hakim El Hattab 2 năm trước cách đây
mục cha
commit
92ee97fbfe

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
plugin/markdown/markdown.esm.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
plugin/markdown/markdown.js


+ 1 - 1
plugin/markdown/plugin.js

@@ -8,7 +8,7 @@ import { marked } from 'marked';
 
 const DEFAULT_SLIDE_SEPARATOR = '\r?\n---\r?\n',
 	  DEFAULT_VERTICAL_SEPARATOR = null,
-	  DEFAULT_NOTES_SEPARATOR = 'notes?:',
+	  DEFAULT_NOTES_SEPARATOR = '^\s*notes?:',
 	  DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '\\\.element\\\s*?(.+?)$',
 	  DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = '\\\.slide:\\\s*?(\\\S.+?)$';
 

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác