Spaces:
Sleeping
Sleeping
Commit
·
4d0fc3b
1
Parent(s):
d5b9de2
fix_code`
Browse files- public/esltool.js +1 -1
- public/utils.js +1 -1
public/esltool.js
CHANGED
|
@@ -152,7 +152,7 @@ setTimeout(() => {
|
|
| 152 |
hello, this is note for language learner
|
| 153 |
code will display like this:
|
| 154 |
\`\`\`
|
| 155 |
-
this code
|
| 156 |
\`\`\`
|
| 157 |
`)
|
| 158 |
view.createMenu(window.innerWidth*0.9, 300);
|
|
|
|
| 152 |
hello, this is note for language learner
|
| 153 |
code will display like this:
|
| 154 |
\`\`\`
|
| 155 |
+
this code \`\${value}\`
|
| 156 |
\`\`\`
|
| 157 |
`)
|
| 158 |
view.createMenu(window.innerWidth*0.9, 300);
|
public/utils.js
CHANGED
|
@@ -520,7 +520,7 @@ const utils = {
|
|
| 520 |
const boldPattern = /\*\*(.*?)\*\*/g;
|
| 521 |
const linkPattern = /\[(.*?)\]\((.*?)\)/g;
|
| 522 |
const newlinePattern = /(?:\n)/g;
|
| 523 |
-
const inlineCodePattern =
|
| 524 |
const codeBlockPattern = /```(\w+)?\n(.*?)```/gs;
|
| 525 |
|
| 526 |
let html = mdString;
|
|
|
|
| 520 |
const boldPattern = /\*\*(.*?)\*\*/g;
|
| 521 |
const linkPattern = /\[(.*?)\]\((.*?)\)/g;
|
| 522 |
const newlinePattern = /(?:\n)/g;
|
| 523 |
+
const inlineCodePattern = /```(.*?)```/g;
|
| 524 |
const codeBlockPattern = /```(\w+)?\n(.*?)```/gs;
|
| 525 |
|
| 526 |
let html = mdString;
|