rizaldy.club/docs/features
LUCASTUCIOUS 072ee64127
feat: Feature/custom callout icon (#727)
* Add icons as masks

To handle a simple way to add custom icons, i made it pure css. Icon are now a mask for the callout-icon div, so they always follow the --color form the current callout.

Now to add a custom icon, you simply add

```css
.callout {
  &[data-callout="custom"] {
    --color: #customcolor;
    --border: #custombordercolor;
    --bg: #custombg;
    --callout-icon: url('data:image/svg+xml; utf8, <custom formatted svg>');

  }
```

to custom.scss

* remove now unused code

* Make callouts an enum

* docs: update instructions for custom callouts

* Prettier & run format

* dynamic matching

For maintainability, make dynamic mathching. If we or Obsidian want to support more callouts, we simply add it to the enum

* callout mapping const

Getting ride of the enum entierly as it's not worth here?

* fix callout icon styling

* Add forgotten icons

* Rebase

* harmonize callout icon and fold icon

* fix docs + prettier

* Update docs/features/callouts.md

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>

* Update quartz/plugins/transformers/ofm.ts

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>

* Suggestions fix

* remove unecessary rules

* comment is always nice

* Update docs/features/callouts.md

---------

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-01-30 22:10:13 -08:00
..
backlinks.md Fix #403 by moving documentation to separate directory to avoid merge conflicts (#405) 2023-08-23 12:09:04 -07:00
breadcrumbs.md fix: small typos (#686) 2024-01-13 09:09:41 -08:00
callouts.md feat: Feature/custom callout icon (#727) 2024-01-30 22:10:13 -08:00
darkmode.md feat: Emit custom event when theme changes (#723) 2024-01-23 14:52:41 -08:00
Docker Support.md feat: docker support for v4 (closes #530) 2023-10-08 09:59:18 -07:00
explorer.md fix: small typos (#686) 2024-01-13 09:09:41 -08:00
folder and tag listings.md Fix #403 by moving documentation to separate directory to avoid merge conflicts (#405) 2023-08-23 12:09:04 -07:00
full-text search.md docs: update full-text-search.md (#447) 2023-09-03 22:36:30 -07:00
graph view.md docs: graph view tag options 2023-12-17 13:19:03 -08:00
index.md Fix #403 by moving documentation to separate directory to avoid merge conflicts (#405) 2023-08-23 12:09:04 -07:00
Latex.md Fix #403 by moving documentation to separate directory to avoid merge conflicts (#405) 2023-08-23 12:09:04 -07:00
Mermaid diagrams.md Fix #403 by moving documentation to separate directory to avoid merge conflicts (#405) 2023-08-23 12:09:04 -07:00
Obsidian compatibility.md feat(ofm): add options to parse arrows (#713) 2024-01-21 11:33:32 -08:00
OxHugo compatibility.md feat: add transformations for latex in oxhugofm (#510) 2023-09-29 11:35:26 -07:00
popover previews.md Fix #403 by moving documentation to separate directory to avoid merge conflicts (#405) 2023-08-23 12:09:04 -07:00
private pages.md docs: clarifications about globs (#559) 2023-10-31 13:53:49 -07:00
recent notes.md Fix #403 by moving documentation to separate directory to avoid merge conflicts (#405) 2023-08-23 12:09:04 -07:00
RSS Feed.md feat: rich html rss (closes #460) 2023-09-12 21:44:03 -07:00
SPA Routing.md Fix #403 by moving documentation to separate directory to avoid merge conflicts (#405) 2023-08-23 12:09:04 -07:00
syntax highlighting.md Fix #403 by moving documentation to separate directory to avoid merge conflicts (#405) 2023-08-23 12:09:04 -07:00
table of contents.md docs: fix property name for ToC toggle (#573) 2023-11-07 09:16:48 -08:00
upcoming features.md feat: 404 page emitter 2023-09-06 21:02:21 -07:00
wikilinks.md docs: note embeds and update git hint 2023-12-16 11:04:18 -08:00