It could be useful to have this information in the documentation.
Add how to add footnotes in a markdown file. #718
bgg/Documentation:doc_proposal_bgg into main It could be useful to have this information in the documentation.
Unfortunately, the footnote doesn't render the way you want in the actual docs, so I think it would be better to just show it via a markdown code block like the mermaid diagrams.
Also, I think this should maybe not be sorted under the Forgejo-specific markdown instructions, as it's available in most markdown flavours?
Ah. So I took a screenshot, but maybe that's not the colors of the actual documentation :
https://codeberg.org/bgg/Documentation/src/branch/doc_proposal_bgg/content/images/markdown/Footnote-example.png
I kept it very simple, I hesitate to be more precise with :
Footnotes definitions can be anywhere. 1
as I read in https://www.markdownguide.org/extended-syntax/.
I did 2 other modifications :
- In bold and italics sections, it seems to be an error to have 2 examples with _.
- I added a strikethrough section.
I hesitate to add a Tex section, maybe not useful in the introduction page.
I don't know if it is for all markdown flavours.
-
But not inside other elements. ↩︎
@ -79,1 +79,4 @@
### Strikethrough
To striketough use ~~ around the text.
Add the backticks around ~~
@ -80,0 +82,4 @@
To striketough use ~~ around the text.
```markdown
This is ~~strokethrough text~~.
s/stroke/strike/
@ -80,0 +86,4 @@
```
is rendered as
This is ~~strokethrough text~~.
s/stroke/strike/
@ -80,0 +94,4 @@
`[^name]:texte.`
```markdown
Texte with a foonote.[^1]
s/Texte/Text/
Surge PR preview deployment succeeded. View it at https://Codeberg-Documentation-pr-718.surge.sh
Thanks, this looks now good to me!
The linter errors are spurious and can be ignored imho.
Or rather: The problem is that the linter wants to undo some of the (correct) changes made here. If you run the linter it'll replace the underscore formatting (eg __bold__) examples with the **bold** notation, which leads to the docs just duplicating the same formatting and no highlighting the __ options.
@ -51,3 +51,3 @@
This gets rendered as
This is also **bold text**.
This is also __bold text__.
For the linter revert this change, not in the codeblock, but in the rendered output.
I don't think that's actually the case. When I ran it locally it wants to make it in the code block too:
This is **bold text**.
```markdown
-This is also __bold text__.
+This is also **bold text**.
Ah, too bad.
Yeah, so shall we merge @mahlzahn ? We can fix the linter later 😊
@ -68,3 +68,3 @@
This gets rendered as
This is _italic text_.
This is *italic text*.
Same here.
Issues affecting Codeberg Pages
Issues related to using and reading docs.codeberg.org
This is related to the generation of the documentation, not to the content itself
The priority is high
The priority is low
The priority is medium
Something has been confirmed
Something exists already
Something was marked as invalid
Something won't be fixed
Contributions are welcome!
Work is in progress
Feedback is needed
Work is completed
Review is in progress / Reviewers wanted
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?