We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I do this:
console.log(endent` hello \`\`\`json ${endent.pretty({ a: 1, b: 2, c: { foo: 3, bar: 4 } })} \`\`\` world `)
Or this:
const myJson = JSON.stringify({ a: 1, b: 2, c: { foo: 3, bar: 4 } }) console.log(endent` hello \`\`\`json ${myJson} \`\`\` world `)
I get this poorly-formatted output:
hello ```json { "a": 1, "b": 2, "c": { "foo": 3, "bar": 4 } } ``` world
But I expect this:
However, if I put some text before my object:
console.log(endent` hello \`\`\`json REMOVE_ME${endent.pretty({ a: 1, b: 2, c: { foo: 3, bar: 4 } })} \`\`\` world `)
It formats everything correctly (but then I need to remove the REMOVE_ME bit in a separate step):
REMOVE_ME
hello ```json REMOVE_ME{ "a": 1, "b": 2, "c": { "foo": 3, "bar": 4 } } ``` world
I was going to file this over at https://github.com/zhouhanseng/endent but you have issues disabled there.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If I do this:
Or this:
I get this poorly-formatted output:
But I expect this:
However, if I put some text before my object:
It formats everything correctly (but then I need to remove the
REMOVE_ME
bit in a separate step):I was going to file this over at https://github.com/zhouhanseng/endent but you have issues disabled there.
The text was updated successfully, but these errors were encountered: