Make Hash Symbol (#) Placement in Tags Follow the Tag's Text Direction, Not the Line's

Use case or problem

The placement of the hash symbol in tags currently follows the direction of the surrounding text line, rather than the direction of the tag itself. This leads to a visually inconsistent appearance—especially when left-to-right (LTR) tags are used within a right-to-left (RTL) text line.

Proposed solution

Two possible approaches:

  1. Consistent Placement: Always position the hash symbol on the left side of the tag, regardless of the text direction of the tag or the surrounding line.
  2. Direction-Aware Rendering: Make the hash symbol follow the text direction of the tag itself, rather than inheriting the direction of the line it appears in.