Browse Source

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

Hakim El Hattab 1 year ago
parent
commit
92ee97fbfe
3 changed files with 1 additions and 1 deletions
  1. 0 0
      plugin/markdown/markdown.esm.js
  2. 0 0
      plugin/markdown/markdown.js
  3. 1 1
      plugin/markdown/plugin.js

File diff suppressed because it is too large
+ 0 - 0
plugin/markdown/markdown.esm.js


File diff suppressed because it is too large
+ 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',
 const DEFAULT_SLIDE_SEPARATOR = '\r?\n---\r?\n',
 	  DEFAULT_VERTICAL_SEPARATOR = null,
 	  DEFAULT_VERTICAL_SEPARATOR = null,
-	  DEFAULT_NOTES_SEPARATOR = 'notes?:',
+	  DEFAULT_NOTES_SEPARATOR = '^\s*notes?:',
 	  DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '\\\.element\\\s*?(.+?)$',
 	  DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '\\\.element\\\s*?(.+?)$',
 	  DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = '\\\.slide:\\\s*?(\\\S.+?)$';
 	  DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = '\\\.slide:\\\s*?(\\\S.+?)$';
 
 

Some files were not shown because too many files changed in this diff