Skip to content

feat(docx): background color on <mark> becomes highlight if css matches#90

Draft
Alexnortung wants to merge 1 commit into
ChipiKaf:mainfrom
Oak-Digital:feat/highlight-mark
Draft

feat(docx): background color on <mark> becomes highlight if css matches#90
Alexnortung wants to merge 1 commit into
ChipiKaf:mainfrom
Oak-Digital:feat/highlight-mark

Conversation

@Alexnortung
Copy link
Copy Markdown
Collaborator

This is a draft for setting highlight in docx based on <mark> elements.

I think it is reasonable that <mark> elements becomes highlight in docx since that is the actual semantic meaning of a <mark> element.

One problem though: doc only supports a few colors (or maybe only docx.js?).

One consideration. The colornames package is already used in this project, we could use it as for this as well to normalize the values and simplify the switch.

TODO:

  • Tests
  • The other colors

@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

@Alexnortung is attempting to deploy a commit to the Chipili's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Alexnortung Alexnortung force-pushed the feat/highlight-mark branch from 8ac4246 to 4f9af02 Compare May 29, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant