Docs: Fix lower half of Markdown documentation is marked as a code block (#13766)

This commit is contained in:
Henry Heino
2025-11-29 10:26:56 +00:00
committed by GitHub
parent 0ccd7e474d
commit 31d37b30b0
2 changed files with 24 additions and 20 deletions
+4 -2
View File
@@ -39,6 +39,7 @@ interface Context {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
currentLinkAttrs?: any;
inFence?: boolean;
fenceStarting?: string;
processedFiles?: string[];
isNews?: boolean;
donateLinks?: string;
@@ -159,7 +160,8 @@ const processToken = (token: any, output: string[], context: Context): void => {
}
} else if (type === 'fence') {
context.inFence = true;
content.push(`\`\`\`${token.info || ''}\n`);
context.fenceStarting = token.markup;
content.push(`${token.markup}${token.info || ''}\n`);
} else if (type === 'html_block') {
contentProcessed = true;
content.push(parseHtml(token.content.trim()));
@@ -252,7 +254,7 @@ const processToken = (token: any, output: string[], context: Context): void => {
}
if (type === 'fence') {
content.push('```');
content.push(context.fenceStarting);
content.push(paragraphBreak);
context.inFence = false;
}
+20 -18
View File
@@ -122,12 +122,14 @@ Joplin can renders [ABC notation](https://abcnotation.com) into sheet music. You
<!-- cSpell:disable -->
```abc
K:F
!f!(fgag-g2c2)|
```
````md
```abc
K:F
!f!(fgag-g2c2)|
```
````
`<!-- cSpell:enable -->
<!-- cSpell:enable -->
For example:
@@ -150,20 +152,20 @@ You can also activate options for a particular sheet music. To do so, add a head
For example, this would add violin tablatures to the sheet music:
<!-- cSpell:disable -->
````md
```abc
{tablature: [{instrument: 'violin'}]}
---
```abc
{tablature: [{instrument: 'violin'}]}
---
X:1
T: Cooley's
M: 4/4
L: 1/8
R: reel
K: G
|:D2|EB{c}BA B2 EB|~B2 AB dBAG|FDAD BDAD|FDAD dAFD|
```
X:1
T: Cooley's
M: 4/4
L: 1/8
R: reel
K: G
|:D2|EB{c}BA B2 EB|~B2 AB dBAG|FDAD BDAD|FDAD dAFD|
```
````
<!-- cSpell:enable -->
![Sheet music and guitar tablature for the Irish reel "Cooley's" in D major](https://raw.githubusercontent.com/laurent22/joplin/dev/Assets/WebsiteAssets/images/md_plugins/abc/Tablature.png)