1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

- avoid logging to console, the error when the diagram syntax is bad

- fix line numbering of code blocks
This commit is contained in:
Baptiste Augrain
2018-09-15 18:33:02 +02:00
parent b03c2a1f80
commit 297c764fe1
3 changed files with 1 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ module.exports = function (md, renderers, defaultRenderer) {
const parameters = {}
let langType = ''
let fileName = ''
let firstLineNumber = 0
let firstLineNumber = 1
let match = /^(\w[-\w]*)?(?:\(((?:\s*\w[-\w]*(?:=(?:'(?:.*?[^\\])?'|"(?:.*?[^\\])?"|(?:[^'"][^\s]*)))?)*)\))?(?::([^:]*)(?::(\d+))?)?\s*$/.exec(params)
if (match) {