deptagency / dept-engineering-blog-ui

dept-engineering-blog-ui.vercel.app
MIT License
1 stars 3 forks source link

Inline markdown links break formatting #71

Open nring opened 2 years ago

nring commented 2 years ago

I noticed this in this post: /benchmarking-rust-code-using-criterion-rs. The author included an inline link to other content which should be perfectly permissible in Markdown using this syntax:

Otherwise, you can skip to the [Creating Benchmarks](#creating-benchmarks) section.

However, the rendered HTML looked like this:

image

with the following generated HTML

<p>If you're interested in the details of each solution, read this section. Otherwise, you can skip to the <a href="/benchmarking-rust-code-using-criterion-rs#creating-benchmarks"><section class="css-e512sj-ContentSection e1rnf7iq0"><span>Creating Benchmarks</span></section></a> section. Just know that the three solutions are, in order of least to most efficient, a simple for-loop, a parallelized for-loop, and an arithmetic series.</p>

The htmlAsText that Ghost sends down looks good. I think this is an issue with the rehydration plugin: rehype or rehype-react.