Obsidian Publish parses Bold/Italic differently than Desktop

Steps to reproduce

Create a page with a bold italic item, using the following syntax:

_**Some Bold Line

Note that in the Obsidian editor, this line will appear bold and italic. When published, however, it will render as standard text with a “_**” before it.

Did you follow the troubleshooting guide? [Y]

Did you try the above steps in the sandbox vault (or just any vault started in restricted mode, no snippets and default theme)? Yes

Expected result

I expect Published pages to show:

Some Text

Actual result

The Published page shows:
_**Some Text

Environment

SYSTEM INFO:
Obsidian version: v1.6.7
Installer version: v1.6.7
Operating system: Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 23.5.0
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: off
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Publish:

Desktop

I don’t use Obsidian Publish but what happens if you write a “full” bold and italic sample text (i.e.: surrounded by an opening _** and closing **_) ? :thinking:

I mean, what happens if you use this:

_**Some Bold Line**_

instead of this:

_**Some Bold Line

Yes, when you close the bold and italic, they both render consistently.

It’s easy enough to work around, I just have to make sure I close my tags.

But Obsidian and Obsidian Publish should probably have a consistent behavior. Either they should both render the text as bold and italic, or both render it as incomplete.

What view are you using on desktop? (I’d expect Reading View to correspond to Publish; Live Preview sometimes has rendering quirks.)

2 Likes

Oh, fascinating.

Reading view does indeed show it as:

_**Some text

Edit view (non-source), however, renders it as

Some text

So, I guess I can check before uploading by toggling reading view. Edit and reading look so similar I never bother switching into Reading. Guess I’ll have to make that a habit.

2 Likes

Yes, you must close your tags. Source mode acts that way because it’s forward looking parser only.

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