File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -565,5 +565,23 @@ ruleTest({
565565 \t\tbb
566566 ` ,
567567 } ,
568+ { // accounts for https://github.com/platers/obsidian-linter/issues/1395
569+ testName : 'A paragraph starting with an asterisk for either italics or bold should have a blank line added' ,
570+ before : dedent `
571+ # Header
572+ **emphasis** blah blah...
573+ *italics* more content here...
574+ abcabc
575+ ` ,
576+ after : dedent `
577+ # Header
578+ ${ '' }
579+ **emphasis** blah blah...
580+ ${ '' }
581+ *italics* more content here...
582+ ${ '' }
583+ abcabc
584+ ` ,
585+ } ,
568586 ] ,
569587} ) ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export const checklistBoxStartsTextRegex = new RegExp(`^${checklistBoxIndicator}
4747export const indentedOrBlockquoteNestedChecklistIndicatorRegex = new RegExp ( `^${ lineStartingWithWhitespaceOrBlockquoteTemplate } - ${ checklistBoxIndicator } ` ) ;
4848export const nonBlockquoteChecklistRegex = new RegExp ( `^\\s*- ${ checklistBoxIndicator } ` ) ;
4949
50- export const startsWithListMarkerRegex = new RegExp ( `^\\s*(-|\\*|\\+|\\d+[.)]|- (${ checklistBoxIndicator } ))` , 'm' ) ;
50+ export const startsWithListMarkerRegex = new RegExp ( `^\\s*(- |\\* |\\+ |\\d+[.)] |- (${ checklistBoxIndicator } ) )` , 'm' ) ;
5151
5252export const footnoteDefinitionIndicatorAtStartOfLine = / ^ ( \[ \^ [ ^ \] ] * \] ) ? ( [ , . ; ! : ? ] ) / gm;
5353export const calloutRegex = / ^ ( > \s * ) + \[ ! [ ^ \s ] * \] / m;
You can’t perform that action at this time.
0 commit comments