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

Output Data as HTML #16

Open
ifeekz opened this issue Sep 15, 2021 · 0 comments
Open

Output Data as HTML #16

ifeekz opened this issue Sep 15, 2021 · 0 comments

Comments

@ifeekz
Copy link

ifeekz commented Sep 15, 2021

Sample python code:
a = 5
b = 7
sum = a+b

Output generated:
{
"time": 1631679658075,
"blocks": [
{
"id": "PweNP7KWja",
"type": "codeBox",
"data": {
"code": "

a = 5
b = 7
sum = a+b
",
"language": "python",
"theme": "https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/atom-one-dark.min.css"
}
}
],
"version": "2.22.2"
}

Output Expected:
{
"time": 1631679658075,
"blocks": [
{
"id": "PweNP7KWja",
"type": "codeBox",
"data": {
"code": "a = 5\nb = 7\nsum = a+b",
"language": "python",
"theme": "https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/atom-one-dark.min.css"
}
}
],
"version": "2.22.2"
}

Please why am I having the output in HTML format (using

as new line instead of \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