Hi,
I was following the web version of gml_string and I think there is an error in the getting started part:
for (let el of document.querySelectorAll("pre:not(.gml)")) { el.classList.add(".gml"); el.innerHTML = gml_string.renderToHTML(el.innerHTML, "gml"); }
This return:
"Uncaught TypeError: tkk is undefined"
"renderToHTML /js/gml_string.js:993"
To fix this error here is my code:
for (let el of document.querySelectorAll("code:not(.gml)")) {
el.classList.add("gml");
var tks = [];
gml_string.parse(el.innerHTML, tks); el.innerHTML = gml_string.renderToHTML(tks, "gml");
}
Look like it was passing the wrong arg to the function renderToHtml(), tokens (tks) where missing.
Thanks for the plugin anyway, it was a bit difficult to setup cause of this but everything look fine now!