@mirrordown/mdit-attrs 0.1.0 → 0.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 +52 -0
- package/package.json +6 -5
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## 0.1.1
|
|
5
|
+
<sub>2026-06-25</sub>
|
|
6
|
+
|
|
7
|
+
- *(patch)*
|
|
8
|
+
fix: resolve `catalog:` protocol in published dependencies
|
|
9
|
+
|
|
10
|
+
0.1.0 was published with Yarn's `catalog:` specifier left literally in
|
|
11
|
+
`dependencies`/`devDependencies`, so consumers could not install the affected
|
|
12
|
+
packages. Packages are now packed with `yarn pack` (which resolves `catalog:`
|
|
13
|
+
to the concrete version ranges from `.yarnrc.yml`) before `npm publish`.
|
|
14
|
+
|
|
15
|
+
## 0.1.0
|
|
16
|
+
|
|
17
|
+
<sub>2026-06-23</sub>
|
|
18
|
+
|
|
19
|
+
- _(minor)_
|
|
20
|
+
|
|
21
|
+
# Initial release
|
|
22
|
+
|
|
23
|
+
First public release of the `@mirrordown/markdown` suite — a collection of markdown syntax extensions for the [unified](https://unifiedjs.com/) (remark/rehype) and [markdown-it](https://github.com/markdown-it/markdown-it) ecosystems.
|
|
24
|
+
|
|
25
|
+
## Packages
|
|
26
|
+
|
|
27
|
+
**Remark/rehype plugins** (`@mirrordown/remd-*`):
|
|
28
|
+
- `abbr` — abbreviation definitions that auto-expand matching text with `<abbr>` tooltips
|
|
29
|
+
- `attrs` — `{attrs}` syntax for adding HTML attributes to markdown elements
|
|
30
|
+
- `definition-list` — `<dl>`/`<dt>`/`<dd>` syntax from PHP Markdown Extra
|
|
31
|
+
- `del` — `~~strikethrough~~` rendered as `<del>` instead of `<s>`
|
|
32
|
+
- `github-alerts` — `> [!NOTE]` callout boxes matching GitHub's alert syntax
|
|
33
|
+
- `inline-svg` — inlines local `.svg` images into the HTML output with size/occurrence/sprite controls
|
|
34
|
+
- `ins` — `++inserted text++` rendered as `<ins>`
|
|
35
|
+
- `kbd` — `[[Ctrl]]+[[C]]` syntax for `<kbd>` keyboard input elements
|
|
36
|
+
- `mark` — `==highlighted text==` rendered as `<mark>`
|
|
37
|
+
- `ruby` — DenDen-ruby syntax (`{base|reading}`) for `<ruby>`/`<rt>`/`<rp>` annotations
|
|
38
|
+
- `steps` — numbered `@N. step` syntax for procedural guides
|
|
39
|
+
- `sub` — `~subscript~` rendered as `<sub>`
|
|
40
|
+
- `sup` — `^superscript^` rendered as `<sup>`
|
|
41
|
+
- `tabs` — `% Tab` syntax for tabbed content panels
|
|
42
|
+
- `unwrap-images` — lifts block-only images out of wrapping `<p>` tags
|
|
43
|
+
|
|
44
|
+
**Markdown-it plugins** (`@mirrordown/mdit-*`): same plugin set, ported for the markdown-it pipeline.
|
|
45
|
+
|
|
46
|
+
**VSCode extensions** (`markdown-*`): each plugin wrapped as a VSCode extension that contributes its syntax to the built-in markdown preview. (Publishing to the VSCode Marketplace is wired separately and is not part of this npm release.)
|
|
47
|
+
|
|
48
|
+
## Highlights
|
|
49
|
+
- Designed to work together — `attrs` understands custom container nodes from `tabs`/`steps`/`definition-list`/`github-alerts`, and `tabs`/`steps` nest bidirectionally.
|
|
50
|
+
- Type-aware: every package ships `.d.mts` declarations and externalizes `unist`/`mdast`/`hast` types so downstream consumers see compatible types.
|
|
51
|
+
- Tested: 880 tests covering every plugin's syntax, plus cross-plugin integration tests for nested constructs (tabs-in-steps, attrs-on-defList, github-alerts-with-attrs, etc.).
|
|
52
|
+
- Documented at [github.com/mirrordown/mirrordown](https://github.com/mirrordown/mirrordown).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirrordown/mdit-attrs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Drake Costa <drake@saeris.io> (https://saeris.gg)",
|
|
6
6
|
"repository": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@types/markdown-it": "
|
|
23
|
-
"markdown-it": "
|
|
22
|
+
"@types/markdown-it": "^14.1.2",
|
|
23
|
+
"markdown-it": "^14.0.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"markdown-it": "^14.0.0"
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"buildCommand": "vp pack",
|
|
33
33
|
"publishCommand": [
|
|
34
34
|
"node ../../scripts/sync-jsr-version.mjs",
|
|
35
|
-
"
|
|
35
|
+
"yarn pack -o package.tgz",
|
|
36
|
+
"npm publish package.tgz --access public"
|
|
36
37
|
]
|
|
37
38
|
}
|
|
38
|
-
}
|
|
39
|
+
}
|