Inline code block characters width does not match table character width in source mode

Steps to reproduce

  1. Switch to source mode
  2. Create an array with inline code blocks, such as:
    | COBS   | ID     | CRC          | EOT    |
    |--------|--------|--------------|--------|
    | `0x06` | `0x06` | `0x3B614AB8` | `0x04` |
    

Did you follow the troubleshooting guide? N/A

Expected result

Inline code blocks monospace characters align with their surroundings.

e.g:
image

Actual result

image

Environment

SYSTEM INFO:
	Obsidian version: v1.3.7
	Installer version: v1.3.7
	Operating system: #1 SMP PREEMPT_DYNAMIC Sat, 15 Jul 2023 19:25:49 +0000 6.4.3-arch1-2
	Login status: not logged in
	Insider build toggle: off
	Live preview: off
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

This is not a bug. If you aim for this type of visual alignment, use the same monospace font everywhere, use source mode and disable the (few) styling that are applied in source mode.

1 Like

Fixed with this snippet:

.cm-inline-code {
    font-size: inherit !important;
}