mathieudutour / gatsby-digital-garden

🌷 🌻 🌺 Create a digital garden with Gatsby
https://mathieudutour.github.io/gatsby-digital-garden
MIT License
666 stars 102 forks source link

Deeply nested blocks are not rendered as lists, but as plain text #69

Open Stvad opened 3 years ago

Stvad commented 3 years ago

For roam export at some level of embeddedness it seems to stop rendering Markdown to Html and just put it as plain text on the page :(

example (cut off & goes off screen for a while). It's almost as if it's rendered as code?

image

Stvad commented 3 years ago

Indeed, if I look at it in the inspector - it's wrapped in pre and code 🤔

image

Stvad commented 3 years ago

it seems anything deeper then 3 levels of nesting gets interpreted as code.

suggests to me that somehow the rule "treat thing indented with 4 spaces" get priority over "treat this thing as continuation of the list"

Stvad commented 3 years ago

https://github.com/gatsbyjs/gatsby/issues/28813

Stvad commented 3 years ago

Fixed this in https://roam.garden/ by adding more spaces artificially initially. Now building the whole structure in MDX directly with MD blocks interleaved, allows for more flexibility