Skip to content

Output Data as HTML #16

Description

@ifeekz

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/cdn-release@9.18.1/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/cdn-release@9.18.1/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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions