Is there a way to make a footnote stick to the end of the line?

The Problem

Hello guys, the problem is very simple: Is there a way to make this footnote stick to the end of the sentence so that the footnote does not stand alone in one line?

You can see the problem in the graphic right there.

Things I have tried

I already tried the “span” command, but this does not work for the reading mode, neither does it work right for the live preview mode.

Any solutions?

Commonly tables can be used to manipulate horizontal placement in your markdown documents although footnote references in table cells don’t work as expected in live preview.

Live preview:


Reading view (hover preview works):

/* table header weigth in reading mode */
.markdown-preview-view {
  --table-header-weight: normal; /* bold/normal */
}

/* table header weigth in live preview */
.markdown-source-view {
  --table-header-weight: normal; /* bold/normal */
}

.markdown-preview-view.hide-table-borders-reading-view {
  --table-border-width: none;
}

.markdown-source-view.hide-table-borders-source-view {
  --table-border-width: none;
}
---
cssclasses: hide-table-borders-reading-view
---
| aadfdasf dafs dfa daf afs fdas dasf dafs dafs adsfa adsf asdf asdf adf afd a                                                                              | [^1] |
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ---- |
| aadfdasf dafs dfa daf afs fdas dasf dafs dafs adsfa adsf asdf asdf adf afd a aadfdasf dafs dfa daf afs fdas dasf dafs dafs adsfa adsf asdf asdf adf afd a | [^2] |

[^1]: test
[^2]: test

you ran out of characters in the line…

if you change your font size, it will be brought back up or soll.[2] will be seen in the next line

it’s like this

additionally, you can add a css snippet to align your line ends

/*Text Alignment in Live Preview Mode*/
.markdown-source-view.mod-cm6 .cm-line {
    text-align: justify;
    text-justify: inter-word;	
}    

/* Text Alignment in Reading Mode */
.markdown-preview-view p {
	text-align: justify;
	text-justify: inter-word;	
}

this will not fix the footnotes carried over to the next line, though, because you can still run out of characters in a line but it will give you some flexibility

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.