mirror of
https://github.com/laurent22/joplin.git
synced 2026-06-18 20:16:34 +02:00
Docs: Fix lower half of Markdown documentation is marked as a code block (#13766)
This commit is contained in:
@@ -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
@@ -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 -->
|
||||
|
||||

|
||||
|
||||
Reference in New Issue
Block a user