<span> Tag Ruins Live Preview

Steps to reproduce

Footnotes and links display incorrectly in Live Preview within the following tag:
<span style=“display: block; text-align: justify;”>[^1] [[#InternalLink]] External Link (I use this tag a lot because I like to make list items justified but also not break footnote functionality. This tag with these styles makes that happen.)

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

image
(This image was taken from Reading Mode. It works there.)

Actual result

image
(This image was take from Live Preview. It doesn’t work there.)

Environment

SYSTEM INFO:
Obsidian version: v1.8.10
Installer version: v1.6.7
Operating system: Windows 11 Home 10.0.22631
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

You’ll notice this doesn’t render either:

<span style="display: block; text-align: justify;">**bold** _italic_ ==highlight==</span>

live preview | reading view


Search the forum for @WhiteNoise markdown html. It’s come up a bunch, but markdown isn’t supported within HTML tags – especially in Live Preview.

1 Like

Is that something that can be fixed?

This is not a bug. It is how obsidian intentionally works.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.