@quartz-community/obsidian-flavored-markdown 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/LICENSE +21 -0
- package/README.md +55 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +25294 -0
- package/dist/index.js.map +1 -0
- package/package.json +160 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Initial Quartz community plugin template.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- **BREAKING (inherited from `@quartz-community/utils`)**: wikilink targets are now lowercased when slugified (e.g. `[[My Note]]` resolves to `my-note` instead of `My-Note`). This matches Obsidian's case-insensitive link-matching behavior.
|
|
17
|
+
|
|
18
|
+
### Removed
|
|
19
|
+
|
|
20
|
+
- **BREAKING**: `disableBrokenWikilinks` option. The broken-link check has been moved to `@quartz-community/crawl-links`, which owns link resolution and can honor its own `markdownLinkResolution` strategy without the two plugins drifting. Users who had `disableBrokenWikilinks: true` under `ObsidianFlavoredMarkdown` must move it to `CrawlLinks`. The new location also covers broken markdown links (e.g. `[text](./nowhere)`), not just wikilinks.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Quartz Community
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# @quartz-community/obsidian-flavored-markdown
|
|
2
|
+
|
|
3
|
+
Transforms Obsidian-specific markdown syntax including wikilinks, callouts, highlights, mermaid diagrams, tags, and media embeds.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx quartz plugin add github:quartz-community/obsidian-flavored-markdown
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```yaml title="quartz.config.yaml"
|
|
14
|
+
plugins:
|
|
15
|
+
- source: github:quartz-community/obsidian-flavored-markdown
|
|
16
|
+
enabled: true
|
|
17
|
+
options:
|
|
18
|
+
enableInHtmlEmbed: false
|
|
19
|
+
enableCheckbox: true
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
For advanced use cases, you can override in TypeScript:
|
|
23
|
+
|
|
24
|
+
```ts title="quartz.ts (override)"
|
|
25
|
+
import * as ExternalPlugin from "./.quartz/plugins";
|
|
26
|
+
|
|
27
|
+
ExternalPlugin.ObsidianFlavoredMarkdown({
|
|
28
|
+
enableInHtmlEmbed: false,
|
|
29
|
+
enableCheckbox: true,
|
|
30
|
+
});
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Configuration
|
|
34
|
+
|
|
35
|
+
| Option | Type | Default | Description |
|
|
36
|
+
| ---------------------- | --------- | ------- | ------------------------------------------- |
|
|
37
|
+
| `comments` | `boolean` | `true` | Whether to parse Obsidian-style comments. |
|
|
38
|
+
| `highlight` | `boolean` | `true` | Whether to parse Obsidian-style highlights. |
|
|
39
|
+
| `wikilinks` | `boolean` | `true` | Whether to parse wikilinks. |
|
|
40
|
+
| `callouts` | `boolean` | `true` | Whether to parse callouts. |
|
|
41
|
+
| `mermaid` | `boolean` | `true` | Whether to parse Mermaid diagrams. |
|
|
42
|
+
| `parseTags` | `boolean` | `true` | Whether to parse tags. |
|
|
43
|
+
| `parseBlockReferences` | `boolean` | `true` | Whether to parse block references. |
|
|
44
|
+
| `enableInHtmlEmbed` | `boolean` | `false` | Whether to enable parsing in HTML embeds. |
|
|
45
|
+
| `enableYouTubeEmbed` | `boolean` | `true` | Whether to enable YouTube embeds. |
|
|
46
|
+
| `enableVideoEmbed` | `boolean` | `true` | Whether to enable video embeds. |
|
|
47
|
+
| `enableCheckbox` | `boolean` | `false` | Whether to enable checkboxes. |
|
|
48
|
+
|
|
49
|
+
## Documentation
|
|
50
|
+
|
|
51
|
+
See the [Quartz documentation](https://quartz.jzhao.xyz/plugins/ObsidianFlavoredMarkdown) for more information.
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
MIT
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { QuartzTransformerPlugin } from '@quartz-community/types';
|
|
2
|
+
export { QuartzTransformerPlugin } from '@quartz-community/types';
|
|
3
|
+
|
|
4
|
+
interface ObsidianFlavoredMarkdownOptions {
|
|
5
|
+
comments: boolean;
|
|
6
|
+
highlight: boolean;
|
|
7
|
+
wikilinks: boolean;
|
|
8
|
+
callouts: boolean;
|
|
9
|
+
mermaid: boolean;
|
|
10
|
+
parseTags: boolean;
|
|
11
|
+
parseBlockReferences: boolean;
|
|
12
|
+
enableInHtmlEmbed: boolean;
|
|
13
|
+
enableYouTubeEmbed: boolean;
|
|
14
|
+
enableTweetEmbed: boolean;
|
|
15
|
+
enableVideoEmbed: boolean;
|
|
16
|
+
enableCheckbox: boolean;
|
|
17
|
+
enableObsidianUri: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<ObsidianFlavoredMarkdownOptions>>;
|
|
20
|
+
|
|
21
|
+
export { ObsidianFlavoredMarkdown, type ObsidianFlavoredMarkdownOptions };
|