Closed tylerkelly13 closed 6 years ago
This is the problematic line:
if target = $('#' + blockId)[0]
I've run into this problem before when working with user-provided IDs. jQuery doesn't protect against an illegal ID selector. Therefore, it's necessary to use getElementById to be safe:
if target = window.document.getElementById(blockId)
Description
Atom error is: Uncaught Error: Syntax error, unrecognized expression: #anchor-id-string_{attribute} Caused by use of undefined attribute in an anchor id. If:
The error will be thrown and the user is unable to edit the heading. This also occurs when the attribute is defined elsewhere (such as a master document) but you are only previewing the current file.
Workaround: close the preview and retry editing the heading.
asciidoc-preview
version: 2.12.1language-asciidoc
version: 1.11.0Screenshots
No screenshot. See attached Stacktrace
Syntax example
Stacktrace
stacktrace.txt