Closed attakei closed 11 months ago
When parameter includes double-quote , raise error in same point.
revealjs_script_conf = {
"controls": True,
"progress": True,
"hash": True,
"center": True,
"transition": "slide",
"dummy": "This is \"quoted\"",
}
Object.assign(
revealjsConfig,
JSON.parse('{"controls": true, "progress": true, "hash": true, "center": true, "transition": "slide", "dummy": "This is \"quoted\"", "scrollActivationWidth": null}')
);
This script is not working, console raises Uncaught SyntaxError: Expected ',' or '}' after property value in JSON at position XXX
.
Object.assign(
revealjsConfig,
JSON.parse('{"controls": true, "progress": true, "hash": true, "center": true, "transition": "slide", "dummy": "This is \\"quoted\\"", "scrollActivationWidth": null}')
);
Fixe by v2.9.2
Desciption
When
revealjs_script_conf
uses string-type parameter and parameter includes quote charecters, it builds successfully but it does not render as presentation. (See reproduction)Reproduction
Build
revealjs
ordirrevealjs
with this parameters inconf.py
Actually
This script is not working, console raises
Uncaught SyntaxError: missing ) after argument list
.Expected
Single-quote in string must be escaped.