Fossil SCM

Fix documentation so that an example of a referenced footnote definition inside of the fenced code block is not recognized as a real footnote defenition. This demonstrates a subtle gotcha and a possible work-arround of it.

george 2022-02-04 16:54 markdown-footnotes
Commit 7229d0f58813d752c573d7fe90c5285b66e50b8c007d6d033581c962aa56eeca
1 file changed +5 -6
+5 -6
--- src/markdown.md
+++ src/markdown.md
@@ -173,16 +173,15 @@
173173
> Formats 2, 4 and 5 ("span-specific footnotes") mark a specific fragment
174174
> that is being commented in the footnote.
175175
> Format 5 reuses a fragment of text as a label.
176176
> Labels are case-insensitive.
177177
178
->
179
-```
180
-[^label]: Footnote definition must start on the first column.
181
- The second line (if any) must be indented by two or more spaces.
182
- Definition continues until indentation drops below that of the 2nd line.
183
-```
178
+> ```
179
+> [^label]: Footnote definition must start on the first column.
180
+> The second line (if any) must be indented by two or more spaces.
181
+> Definition continues until indentation drops below that of the 2nd line.
182
+>```
184183
> Charachter **^** is not part of a label, it is part of the syntax.
185184
> Both a footnote's text and a fragment to which a footnote applies
186185
> are subject to further interpretation as Markdown sources.
187186
188187
## Miscellaneous ##
189188
--- src/markdown.md
+++ src/markdown.md
@@ -173,16 +173,15 @@
173 > Formats 2, 4 and 5 ("span-specific footnotes") mark a specific fragment
174 > that is being commented in the footnote.
175 > Format 5 reuses a fragment of text as a label.
176 > Labels are case-insensitive.
177
178 >
179 ```
180 [^label]: Footnote definition must start on the first column.
181 The second line (if any) must be indented by two or more spaces.
182 Definition continues until indentation drops below that of the 2nd line.
183 ```
184 > Charachter **^** is not part of a label, it is part of the syntax.
185 > Both a footnote's text and a fragment to which a footnote applies
186 > are subject to further interpretation as Markdown sources.
187
188 ## Miscellaneous ##
189
--- src/markdown.md
+++ src/markdown.md
@@ -173,16 +173,15 @@
173 > Formats 2, 4 and 5 ("span-specific footnotes") mark a specific fragment
174 > that is being commented in the footnote.
175 > Format 5 reuses a fragment of text as a label.
176 > Labels are case-insensitive.
177
178 > ```
179 > [^label]: Footnote definition must start on the first column.
180 > The second line (if any) must be indented by two or more spaces.
181 > Definition continues until indentation drops below that of the 2nd line.
182 >```
 
183 > Charachter **^** is not part of a label, it is part of the syntax.
184 > Both a footnote's text and a fragment to which a footnote applies
185 > are subject to further interpretation as Markdown sources.
186
187 ## Miscellaneous ##
188

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button