Page MenuHomePhabricator

Quoting a code block does not work as expected
Closed, ResolvedPublic

Description

I'm not sure what the expected behaviour here is, but quoting a comment which contains a code block does not function as I would expect.

{F163415}

The comment in question is D9343#7.

Event Timeline

joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Remarkup.
joshuaspence added a subscriber: joshuaspence.

When we quote, we add > to the beginning of the text (that is: "greater than", "space"). For most rules this is fine, but the triple-backtick rule is sensitive to leading whitespace.

The best fix is probably to allow whitespace on a line before opening or closing triple backticks. Then "space space tick tick tick" would be a codeblock, but that seems reasonable, and will fix this issue.

joshuaspence renamed this task from Quoting a code block does not work as expected. to Quoting a code block does not work as expected.Jul 10 2014, 7:28 PM