Skip to content

Commit

Permalink
chore(semantic): use mark for highlights
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Pham <[email protected]>
  • Loading branch information
aarnphm committed Nov 29, 2024
1 parent 1a4cfa6 commit 629da62
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion quartz/plugins/transformers/ofm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
const [inner] = capture
return {
type: "html",
value: `<span class="text-highlight">${inner}</span>`,
value: `<mark>${inner}</mark>`,
}
},
])
Expand Down
4 changes: 2 additions & 2 deletions quartz/plugins/transformers/roam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function transformSpecialEmbed(node: Paragraph, opts: Options): Html | null {

return {
type: "html",
value: `<iframe
value: `<iframe
class="external-embed youtube"
width="600px"
height="350px"
Expand Down Expand Up @@ -164,7 +164,7 @@ export const RoamFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options> | un
roamHighlightRegex,
(_value: string, inner: string) => ({
type: "html",
value: `<span class="text-highlight">${inner}</span>`,
value: `<mark>${inner}</mark>`,
}),
])

Expand Down
2 changes: 1 addition & 1 deletion quartz/styles/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ section {
color: var(--darkgray);
}

.text-highlight {
mark {
background-color: var(--textHighlight);
padding: 0 0.1rem;
border-radius: 5px;
Expand Down

0 comments on commit 629da62

Please sign in to comment.