Page MenuHomePhabricator

Remarkup does not recognize code blocks under a bullet and one blank line
Closed, DuplicatePublic

Description

Here's a bullet followed by a line of code, indented with two spaces and separated by a blank line:

  • Bullet point

    console.log("I am code"); // home

Here's a bullet followed by the same line of code, separated by two blank lines:

  • Bullet point
console.log("I am code"); // [[http://secure.phabricator.com|home]]

As of right now, the first code block renders for me as plain text, while the second correctly renders as a code block.

Event Timeline

staticshock assigned this task to epriestley.
staticshock raised the priority of this task from to Needs Triage.
staticshock updated the task description. (Show Details)
staticshock added a project: Remarkup.
staticshock added a subscriber: staticshock.
chad triaged this task as Wishlist priority.

I'm not super positive this is the same issue at the core. But I think, maybe?

This is intentional. You can use triple backticks to differentiate between a code block after a list item and a multi-paragraph list item.

What's the syntax for a multi-paragraph list item?

  • First paragraph

If this is the second paragraph for the bullet, shouldn't it be at the same indentation level?

Ah, never mind, I understand now. It's exactly the thing I was doing.

  • Bullet

    Second paragraph