0
Good morning guys, I’m in trouble I wanted a little help from you. Something is causing the content passed in the function to escape the control bar , I need them not escape because this function renders a diagram where all of them are part of the rendering.
// escrevanatela('$$\gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.$$');
function escrevanatela(conteudo) {
console.log(conteudo);
// nesse momento meu parâmetro já mostra sem as \
// '$$gamma(z) = int_0^infty t^{z-1}e^{-t}dt,.$$'
document.getElementById("wm
d-input").value = conteudo;
document.getElementById("wmd-button-bar").innerHTML = "";
var converter = Markdown.getSanitizingConverter();
Markdown.Extra.init(converter, {
extensions: "all",
highlighter: "prettify"
});
var editor = new Markdown.Editor(converter);
editor.hooks.chain("onPreviewRefresh", prettyPrint);
editor.run();
};
who already knows how to solve or even propose solutions I thank D+!! hugs.
complementing this answer, using double bars, you use one bar to escape and the other appears, so you have the desired result.
– Diego Andrade
This way it works, but I need to pass only a pq I’m using an editor that converts regular expressions to diagrams, in my editor I step one and it works, but director in the function I can’t, it seems that javascript does not interpret it. I have expressions that use several bars and if one is missing that breaks the rendered content, so the need to use this single bar that I need directly in the function. - André Vieira 6 seconds ago edit
– André Vieira