Jacky Zhao
b00198b888
fix: load mermaid as normal now that inline is safely below bundle size
2025-03-10 16:42:08 -07:00
dependabot[bot]
a3b6201365
chore(deps): bump the production-dependencies group with 6 updates ( #1804 )
...
* chore(deps): bump the production-dependencies group with 6 updates
Bumps the production-dependencies group with 6 updates:
| Package | From | To |
| --- | --- | --- |
| [hast-util-to-jsx-runtime](https://github.com/syntax-tree/hast-util-to-jsx-runtime ) | `2.3.4` | `2.3.5` |
| [pixi.js](https://github.com/pixijs/pixijs ) | `8.8.0` | `8.8.1` |
| [preact](https://github.com/preactjs/preact ) | `10.26.2` | `10.26.4` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) | `22.13.5` | `22.13.9` |
| [prettier](https://github.com/prettier/prettier ) | `3.5.2` | `3.5.3` |
| [typescript](https://github.com/microsoft/TypeScript ) | `5.7.3` | `5.8.2` |
Updates `hast-util-to-jsx-runtime` from 2.3.4 to 2.3.5
- [Release notes](https://github.com/syntax-tree/hast-util-to-jsx-runtime/releases )
- [Commits](https://github.com/syntax-tree/hast-util-to-jsx-runtime/compare/2.3.4...2.3.5 )
Updates `pixi.js` from 8.8.0 to 8.8.1
- [Release notes](https://github.com/pixijs/pixijs/releases )
- [Commits](https://github.com/pixijs/pixijs/compare/v8.8.0...v8.8.1 )
Updates `preact` from 10.26.2 to 10.26.4
- [Release notes](https://github.com/preactjs/preact/releases )
- [Commits](https://github.com/preactjs/preact/compare/10.26.2...10.26.4 )
Updates `@types/node` from 22.13.5 to 22.13.9
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `prettier` from 3.5.2 to 3.5.3
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/3.5.2...3.5.3 )
Updates `typescript` from 5.7.3 to 5.8.2
- [Release notes](https://github.com/microsoft/TypeScript/releases )
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml )
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.7.3...v5.8.2 )
---
updated-dependencies:
- dependency-name: hast-util-to-jsx-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: production-dependencies
- dependency-name: pixi.js
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: production-dependencies
- dependency-name: preact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: production-dependencies
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: production-dependencies
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: production-dependencies
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: production-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
* type fixes
* fix more types
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2025-03-05 16:45:02 -08:00
dependabot[bot]
09f8670db7
chore(deps): bump the production-dependencies group with 4 updates ( #1711 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2025-01-07 20:32:02 -05:00
Anton Bulakh
b7a945e034
fix(tags): Dont consume a space before content tags ( #1706 )
2025-01-05 01:11:15 -05:00
Aaron Pham
2e6a675edd
perf: reduce bundle size ( closes #1607 ) ( #1689 )
2025-01-01 12:24:32 -08:00
dependabot[bot]
367bb0e6ce
chore(deps): bump the production-dependencies group across 1 directory with 14 updates ( #1655 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-12-17 03:53:51 -05:00
Aaron Pham
92676d746e
feat(ofm): support parsing footnotes in table ( #1581 )
2024-11-12 03:37:59 -05:00
Aaron Pham
1ab9c91df1
feat(mermaid): improvement navigation ( #1575 )
...
* feat(mermaid): custom stuff
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
* chore: use mermaid and update clipboard content
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
* fix: explicitly use center div
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
---------
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-11-10 18:13:12 -05:00
Pierre Lairez
0d1f15d37c
feat(ofm): Allow for dashes in custom callout label ( #1493 )
...
* [OFM] Allow for dashes in custom callout label
For compatibility with Obsidian's behavior, a custom callout like
[!see-also] is possible. Previously, this was parsed by Quartz as a
callout “see” with metadata “-also”. Instead, this is should be a
callout “see-also” with title “See also” (capitalization + replace
dashes by spaces).
* prettier
2024-10-10 07:15:23 -04:00
Emile Bangma
cd3bb25626
fix: account for subtags in numerical tags ( closes #1408 ) ( #1410 )
2024-09-15 11:25:31 -04:00
Jacky Zhao
39eebca3cf
chore: ts fixes
2024-08-08 18:28:13 -07:00
Jacky Zhao
3938904cd0
fix: embed pdf aspect ratio ( closes #1310 )
2024-08-05 19:31:54 -07:00
Jacky Zhao
ca3943b500
fix: responsive youtube embed ( closes #1167 )
2024-08-05 19:14:14 -07:00
Emile Bangma
f37dbe1a59
fix(translusion): block reference not being recognized. ( #1274 )
2024-07-14 03:06:52 -07:00
Jacky Zhao
247625c4f5
feat(layout): add afterBody
2024-07-09 19:09:31 -07:00
Alex Nordstrom
c95f1d2336
feat: add alias/metadata to transclude tag ( #1229 )
2024-07-09 17:26:32 -07:00
Jacky Zhao
2154d36d99
chore: use regex flag instead of string in regexp ctor
2024-07-09 17:20:13 -07:00
Emile Bangma
3e14b2b89b
fix(wikilinks): pdf page linking ( #1207 )
2024-06-14 09:17:46 -07:00
Emile Bangma
81d00fc9c0
.callout-content support ( #1188 )
...
* .callout-content support
* Use BlockContent | FootnoteContent for callout body
* Update quartz/plugins/transformers/ofm.ts
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* Refactor
* Combine child selectors
* Fix multiple callout members
* Empty check
* Replace splice
---------
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-06-13 16:02:00 -07:00
Alex Nordstrom
9ff4626d25
fix: change callout metadata regex to include non-letter characters ( #1174 )
...
* fix: change callout metadata regex to include non-letter characters
* fix: make metadata regex non-greedy
This allows for users to have callouts such as
> [!NOTE|left foo-bar 123] a ]+ title with square brackets [s] a
> Contents
2024-05-29 12:48:39 -07:00
Alex Nordstrom
77d6d9623f
feat: add callout metadata parsing ( #1172 )
2024-05-28 15:23:28 -07:00
Emile Bangma
5ec61468d5
fix(wikilinks): proper escaping of pipe character in wikilinks inside tables ( #1040 )
2024-03-31 09:44:50 -07:00
Emile Bangma
7e22c38f8e
fix(wikilinks): handle wikilinks inside tables seperately from other wikilinks ( #1005 )
...
* fix(wikilinks): handle wikilinks inside tables seperately from other wikilinks
* Prettier
* Cleaned up duplicate code
* Remove test logging
* Refactored and fixed for non-aliased wikilinks inside table
* Updated naming and comments
* Updated comment of wikilink regex
* Updated regex to match previous formatting
* Match table even if EOF is immediately after the table.
* Update quartz/plugins/transformers/ofm.ts
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* Change table escape replace to non-regex version
* Prettier
* Prettier
---------
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-03-17 18:16:04 -07:00
Emile Bangma
4691369abf
fix(wikilinks): only escape alias in wikilinks inside tables ( #1000 )
2024-03-16 09:23:08 -04:00
Aaron Pham
7164857f6e
chore(ofm): remove unused ( #999 )
...
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2024-03-15 18:17:42 -07:00
catcodeme
8be51a0504
fix: wikiLink in table ( #993 )
...
* fix: wikiLink in table
- update regexp to make '\' to group in alias
- handle alias using block_id
* style: format with prettier
* style: add comment for block_ref(without alias) in table
---------
Co-authored-by: hulinjiang <hulinjiang@58.com>
2024-03-14 23:25:01 -07:00
Matt Vogel
001c166825
fix(tag): move hash to sass styling only ( #930 )
2024-03-06 20:25:39 -05:00
Emile Bangma
e13cafe070
feat: support youtube playlist iframe ( #968 )
...
* feat: support youtube playlist iframe
* chore: updated Youtube embed documentation to include playlists
2024-03-06 09:45:31 -08:00
Jacky Zhao
2a7e61ae2a
feat: support transcluding codeblocks and blockquotes ( closes #940 )
2024-03-03 12:31:55 -08:00
Jacky Zhao
421718958f
fix(callouts): use user provided title instead of canonical for default title
2024-02-23 11:20:35 -08:00
s-crypt
739c2e2cc8
perf(cdn): CDNJS instead of JSDelivr ( #891 )
2024-02-18 20:26:04 -08:00
Jacky Zhao
389f2e8bee
fix(ofm): allow diacretic marks in tag regex ( closes #830 )
2024-02-11 12:12:01 -08:00
Aaron Pham
ab80eba794
chore(callouts): remove unnecessary whitespaces after class name ( #833 )
...
Though we should have a plugins that just strip whitespace in all node
class.
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2024-02-10 17:19:17 -05:00
Aaron Pham
db5e701810
feat(i18n): support parsing callouts ( #834 )
...
* feat(i18n): support parsing callouts
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
* chore: move callout into components
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
* chore: update arabic translation
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
* fix: make sure to use correct items
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
---------
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2024-02-10 17:09:57 -05:00
Jacky Zhao
34334eabed
perf: don't load mermaid if its not on the page
2024-02-05 20:36:31 -08:00
Aaron Pham
e58c217de1
feat: support checkbox ( closes #646 ) ( #799 )
...
* feat: support checkbox
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
* chore: apply review from jacky
---------
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2024-02-04 22:19:25 -08:00
Aaron Pham
5b90fbd0d0
feat(ofm): parsing all type of arrow ( #797 )
...
* feat(ofm): parsing all type of arrow
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
* fix: use html value instead of decimal
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
* fix: skip parsing arrow if it is not a valid supported mapping
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
---------
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2024-02-04 00:51:55 -05:00
Jacky Zhao
bfd877133b
fix: regression in formatted callout titles
2024-01-31 12:09:04 -08:00
Jacky Zhao
7cb1c291c8
fix: allow formatting in callout titles
2024-01-31 11:41:27 -08:00
Jacky Zhao
4e5643fb49
fix: properly parse tags in body
2024-01-30 23:51:21 -08:00
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
Jacky Zhao
ebf429a9c6
fix: fmt
2024-01-29 09:38:14 -08:00
Jacky Zhao
2d727443b3
fix: implement regex fix for alt in image wikilinks ( closes #753 )
2024-01-29 09:36:36 -08:00
Mara-Li
603c181ad2
feat: allow to config a translation for date ( #739 )
...
* fix: alt error mix with height/width
More granular detection of alt and resize in image
* fix: format
* feat: allow to translate the date displayed
* style: format
* fix: rename to fusion dateLocale with locale (i18n support)
* Update quartz/components/PageList.tsx
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* remove default key as it was already set
* add docstring for locale
---------
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-01-28 22:13:59 -08:00
Jacky Zhao
211f95c527
fix: allow alt to be defined in wikilinks alongside dims
2024-01-27 22:49:57 -08:00
Jacky Zhao
42ee069c1c
fix: generalize frontmatter parsing and coercing
2024-01-27 21:39:16 -08:00
LUCASTUCIOUS
d5b40279bd
feat: Enable custom callout ( #724 )
...
* Enable custom callout
make a callout custom defaulted to a note one.
* Add a comment
* remove comment from quartz/plugins/transformers/ofm.ts
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* Update quartz/plugins/transformers/ofm.ts
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
---------
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-01-24 23:54:24 -08:00
Jacky Zhao
2c8d0f8ab6
fix: more robust ofm comment handling
2024-01-22 10:29:57 -08:00
Jacky Zhao
cd826fb477
fix: process comments at a text level rather than a markdown level
2024-01-22 10:03:59 -08:00
Aaron Pham
4d338cec13
feat(ofm): add options to parse arrows ( #713 )
...
* feat(ofm): add options to parse arrows
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
* feat(ofm): add options to parse arrows
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
---------
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2024-01-21 11:33:32 -08:00