Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(semantic): use mark for highlights #1624

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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