Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data missing after convert wiki data to HTML #23

Open
claudio-tonha opened this issue Mar 12, 2024 · 0 comments
Open

Data missing after convert wiki data to HTML #23

claudio-tonha opened this issue Mar 12, 2024 · 0 comments

Comments

@claudio-tonha
Copy link

claudio-tonha commented Mar 12, 2024

I tried:

var obj = {
    "Data": "{code:javascript}var creds = {\"username\": \"test\", \"password\": \"test123\"};\nvar response = await client.Post(\"localhost\", creds);\nconsole.log(response);{code}",
}

j2m.jira_to_html(obj.Data)

but I got this

<pre><code class="language-javascriptvar">var response = await client.Post(&quot;localhost&quot;, creds);
console.log(response);
</code></pre>

The problem is in to_markdown. I got the following result:

'```javascriptvar creds = {"username": "test", "password": "test123"};\n' +
    'var response = await client.Post("localhost", creds);\n' +
    'console.log(response);\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant