mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user