mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Rename a variable name again
This commit is contained in:
@@ -30,7 +30,7 @@ var md = markdownit({
|
|||||||
const langInfo = lang.split(delimiter)
|
const langInfo = lang.split(delimiter)
|
||||||
const langType = langInfo[0]
|
const langType = langInfo[0]
|
||||||
const fileName = langInfo[1] || ''
|
const fileName = langInfo[1] || ''
|
||||||
const fc = parseInt(langInfo[2], 10)
|
const firstLineNumber = parseInt(langInfo[2], 10)
|
||||||
|
|
||||||
if (langType === 'flowchart') {
|
if (langType === 'flowchart') {
|
||||||
return `<pre class="flowchart">${str}</pre>`
|
return `<pre class="flowchart">${str}</pre>`
|
||||||
@@ -40,7 +40,7 @@ var md = markdownit({
|
|||||||
}
|
}
|
||||||
return '<pre class="code">' +
|
return '<pre class="code">' +
|
||||||
'<span class="filename">' + fileName + '</span>' +
|
'<span class="filename">' + fileName + '</span>' +
|
||||||
createGutter(str, fc) +
|
createGutter(str, firstLineNumber) +
|
||||||
'<code class="' + langType + '">' +
|
'<code class="' + langType + '">' +
|
||||||
str +
|
str +
|
||||||
'</code></pre>'
|
'</code></pre>'
|
||||||
|
|||||||
Reference in New Issue
Block a user