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

Table values should be escaped #60

Closed
thisconnect opened this issue May 13, 2020 · 0 comments
Closed

Table values should be escaped #60

thisconnect opened this issue May 13, 2020 · 0 comments

Comments

@thisconnect
Copy link

Having | or square brackets as table values might lead to invalid or wrong tables and should be escaped.

var json2md = require("json2md")

console.log(json2md( {
  table: { headers: ["path", "title", "text"], rows: 
  [{
    "path": "/",
    "title": "Test values with | pipe.",
    "text": "or eventually brackets too [ should be escaped ]"
}]
 } } 
))
This was referenced Oct 6, 2020
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

2 participants