Skip to content

Source mode table alignment breaks with bold text #201

Description

@Sinthoth

When using the Things theme in Obsidian Source Mode with a monospaced CJK font such as Sarasa Mono SC, Markdown tables align correctly until a cell contains bold text using ....

Example:

Image

The vertical bars after the bold text become slightly misaligned, even though Sarasa Mono SC is a true monospaced font. The same setup aligns correctly in some other themes, such as Primary.

This may be caused by the theme applying a different font weight, font family, letter spacing, font feature, or synthetic bold styling to .cm-strong in Source Mode.

Environment

Obsidian: latest version

Theme: Things

Font: Sarasa Mono SC

Editing mode: Source Mode

OS: Windows

Could you please check whether the Source Mode bold styling preserves the same character width as normal text?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions