Skip to content

@void/md: three right-to-left/translation details and task lists #802

Closed

Description

@joeblew999

I'm building a Void app translated into Thai and Arabic, with the docs in @void/md, and hit four small things in 1.8.0.

  1. Heading anchors in right-to-left pages. packages/md/src/theme/prose.css (166–168) places .header-anchor with float: left; margin-left: -0.87em; padding-right: 0.23em, so in a dir="rtl" page the # sticks out past the left edge. The logical forms (float: inline-start; margin-inline-start; padding-inline-end) fix it and change nothing for left-to-right pages.
  2. The copy button in right-to-left pages. packages/md/src/theme/code.css (53) uses right: 0.5em; inset-inline-end would put it at the end of the line in either direction.
  3. The copy button's label is fixed in English. title="Copy Code" in packages/md/src/plugins/pre-wrapper.ts (61) can't be translated. Maybe a plugin option for the label?
  4. Task lists. The guide says the theme covers task lists, but - [ ] item renders as the literal text [ ] item. No task-list plugin is registered in compile.ts.

Example (Arabic, with my CSS workaround for 1): https://void-fbtee-example.gedw99.workers.dev/ar-EG/docs/tour

Activity

  1. cpojer commented on Nov 12, 2026

    @cpojer
    Member

    Thanks. Do you wanna send a PR?

  2. harshbhx commented on Nov 13, 2026

    @harshbhx
    Contributor

    I'm taking this. #811 covers the task lists, and I'll add the right-to-left anchor and copy button fixes and a copyLabel option for the copy button title to the same PR.

  3. added a commit that references this issue on Nov 13, 2026
    d92a6f3
  4. added a commit that references this issue on Nov 13, 2026
    13ca7fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions