prisma / docs

📚 Prisma Documentation
https://www.prisma.io/docs
Apache License 2.0
983 stars 777 forks source link

TopBlock doesn't render Markdown links #1046

Closed nikolasburk closed 3 years ago

nikolasburk commented 3 years ago

image

Example: https://www.prisma.io/docs/guides/migrate-to-prisma/migrate-from-typeorm

image

hrescak commented 3 years ago

This is baffling to me because I assumed that this is one of the limitations of MDX - whatever is 'inside' a component is no longer markdown so I'm surprised that last link is even working 🤣

nikolasburk commented 3 years ago

True, definitely wird! Maybe the last link works because it's linking internally do another docs page 🤔

Also, it seems to dependent on the implementation, e.g. on the blog you can just use plain Markdown in the <Abstract> element:

https://raw.githubusercontent.com/prisma/prisma-blog/master/posts/2020-11-03-prisma-studio.mdx?token=AA66ZV6W3ZE426BCOKEK2HS7ZYURE

rahul3v commented 3 years ago

It just needs a newline between the newBlock and the content to work fine