Indented pdf preview becomes codeblock

Testing version:

What were you doing:
Putting spaces before pdf preview

What feature did you use:

Pdf preview

What happened:

Embedded pdf preview turned into codeblock.
Removing spaces does not bring back preview.

What did you expect to happen:

Either not allowing to further space indent or not turn into pdf embedding command.

Also after removing 4 spaces the previews should reappear.

I think the current behavior is correct in the sense that it is exactly what one would expect from the MD spec.

It might however catch some users off guard who expect the preview to remain visible. I do not have a suggestion on how to handle this, but knowing this sideffects might be useful.

What is however a bug is that removing a space does not turn the preview back on, this is unexpected.

Btw, love the new PDF preview :slight_smile: have run it through all edge cases i could think of and only this came up.

Hi there,

Thank you for reporting the above, and for sharing your opinion (letting us know you think it may catch some users off guard).

I’ll pass the above onto the development team to bear in mind moving forward.

Glad to hear that you are liking the new PDF Preview!