1
0
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:
Junyoung Choi
2018-02-22 10:54:12 +09:00
parent c3586372e0
commit e4fbdb35a3

View File

@@ -30,7 +30,7 @@ var md = markdownit({
const langInfo = lang.split(delimiter)
const langType = langInfo[0]
const fileName = langInfo[1] || ''
const fc = parseInt(langInfo[2], 10)
const firstLineNumber = parseInt(langInfo[2], 10)
if (langType === 'flowchart') {
return `<pre class="flowchart">${str}</pre>`
@@ -40,7 +40,7 @@ var md = markdownit({
}
return '<pre class="code">' +
'<span class="filename">' + fileName + '</span>' +
createGutter(str, fc) +
createGutter(str, firstLineNumber) +
'<code class="' + langType + '">' +
str +
'</code></pre>'