Skip to content

Question: script markdown transformation #638

Answered by colinodell
lqgithu asked this question in Q&A
Discussion options

You must be logged in to vote

three backtick [...] only display command, it didn't execute the command.

Using three backticks creates a fenced code block which will render the code as-is - good for sharing code examples

so is there any limitation for markdown to handle scripts with spaces?

Yes, as I mentioned yesterday, the CommonMark spec does not allow for ASCII spaces within link destinations, including ones that are actually malicious XSS links like your example.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by colinodell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question General questions about the project or usage
2 participants
Converted from issue

This discussion was converted from issue #593 on June 12, 2021 13:54.