@quartz-community/github-flavored-markdown 2.0.0 → 2.1.1
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 +18 -0
- package/dist/index.js +2323 -2147
- package/dist/index.js.map +1 -1
- package/package.json +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b581f72: Uses Quartz's own `preact` instead of bundling a second copy (`noExternal` in the build overrode the externals). Components now share one Preact instance with Quartz and other plugins, so hooks and context work across them, and the bundle is smaller.
|
|
8
|
+
|
|
9
|
+
## 2.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 6ffbdf6: Heading ids now come from the heading as written, so links to headings reach them:
|
|
14
|
+
|
|
15
|
+
- **Changed id:** with SmartyPants on (the default), a heading containing `--` now gets the same id as on GitHub: `## Range 1--2` → `range-1--2` (was `range-12`). A link that hard-codes the old id (`[x](#range-12)` or an external link to `page#range-12`) needs updating; `[[page#Range 1--2]]` and `[x](#range-1--2)` work. Other ids don't change.
|
|
16
|
+
- A link written by Obsidian to a heading containing `:`, `|`, `^`, `#` or `\` (Obsidian replaces these with spaces, e.g. `[[note#Colon unspaced]]` for `## Colon:unspaced`) now reaches the heading, through an extra id on an empty `<span class="heading-alias">` inside it.
|
|
17
|
+
- A same-page link written as a heading's text, such as `[x](<#My Heading>)`, now points at the heading's id.
|
|
18
|
+
|
|
19
|
+
Heading ids use the shared `slugHeading` from `@quartz-community/utils`, which links and table-of-contents entries use too. This replaces `rehype-slug`; ids for all other headings are unchanged.
|
|
20
|
+
|
|
3
21
|
## 2.0.0
|
|
4
22
|
|
|
5
23
|
### Major Changes
|