@quartz-community/github-flavored-markdown 1.0.0 → 2.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 CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6ffbdf6: Heading ids now come from the heading as written, so links to headings reach them:
8
+
9
+ - **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.
10
+ - 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.
11
+ - A same-page link written as a heading's text, such as `[x](<#My Heading>)`, now points at the heading's id.
12
+
13
+ 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.
14
+
15
+ ## 2.0.0
16
+
17
+ ### Major Changes
18
+
19
+ - 020474b: Run before `obsidian-flavored-markdown` (`defaultOrder` 40 → 30)
20
+
21
+ A combined micromark extension prepends its constructs, so where two plugins claim
22
+ the same character the **later-registered** one wins. With this plugin ordered after
23
+ `obsidian-flavored-markdown`, GFM owned every character both wanted — `~` most
24
+ visibly — and Obsidian's own tokenizers could not run at all.
25
+
26
+ Obsidian's strikethrough is not GFM's: it closes on the first `~~` it reaches,
27
+ honours no escape, and has no single-tilde form. Reproducing that needs this plugin
28
+ to register first.
29
+
30
+ Measured on `remark-obsidian`'s recorded Obsidian corpus: the reorder on its own is
31
+ behaviour-neutral (0 cases fixed, 0 broken, which also clears the one real risk —
32
+ both plugins claim `[`, GFM's footnote against Obsidian's wikilink), and it lets 21
33
+ strikethrough cases match with no regression.
34
+
35
+ Rendered output changes for notes using `~~`, hence the major bump.
36
+
3
37
  ## 1.0.0
4
38
 
5
39
  ### Major Changes