You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: __tests__/move-footnotes-to-the-bottom.test.ts
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -305,5 +305,25 @@ ruleTest({
305
305
[^3]: [3333](333)
306
306
`,
307
307
},
308
+
{// accounts for https://github.com/platers/obsidian-linter/issues/1392
309
+
testName: 'Moving footnotes to the bottom of the file when including blank lines between footnotes should not change a file with footnotes at the end with blank lines between them already',
310
+
before: dedent`
311
+
This is the first footnote.[^1] This is the second.[^2]
312
+
${''}
313
+
[^1]: Hey, I am a footnote!
314
+
${''}
315
+
[^2]: Me too!
316
+
`,
317
+
after: dedent`
318
+
This is the first footnote.[^1] This is the second.[^2]
Copy file name to clipboardExpand all lines: src/lang/locale/en.ts
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -532,6 +532,10 @@ export default {
532
532
'move-footnotes-to-the-bottom': {
533
533
'name': 'Move Footnotes to the bottom',
534
534
'description': 'Move all footnotes to the bottom of the document and makes sure they are sorted based on the order they are referenced in the file\'s body.',
535
+
'include-blank-line-between-footnotes': {
536
+
'name': 'Include Blank Line Between Footnotes',
537
+
'description': 'Includes a blank line between footnotes when enabled.',
0 commit comments