@podlite/highlight 0.0.2 → 0.0.3
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.podlite +4 -0
- package/README.md +4 -2
- package/package.json +2 -2
package/CHANGELOG.podlite
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
=head1 Upcoming
|
|
4
4
|
|
|
5
|
+
=head1 0.0.3
|
|
6
|
+
|
|
7
|
+
=item the README says what the runtime fallback covers: a chunk that fails to load after a successful build, not a missing install
|
|
8
|
+
|
|
5
9
|
=head1 0.0.2
|
|
6
10
|
|
|
7
11
|
=item a caller that does not say how to wrap a code block gets the wrapping that shows a caption. The other wrapping drops it, and a caption written on a block was disappearing for callers that said nothing
|
package/README.md
CHANGED
|
@@ -18,8 +18,10 @@ that does and does not buy you:
|
|
|
18
18
|
- **Bundling.** The loader names `shiki` in a plain dynamic import, which lets a
|
|
19
19
|
bundler split it into its own chunk. That same plain name has to resolve at
|
|
20
20
|
build time, so install shiki if you bundle this package.
|
|
21
|
-
- **Runtime.** If the chunk fails to load
|
|
22
|
-
plain `<pre><code>` instead of
|
|
21
|
+
- **Runtime.** If the chunk fails to load after a successful build, say over a
|
|
22
|
+
bad network, the component renders the code as plain `<pre><code>` instead of
|
|
23
|
+
throwing. This does not cover a missing install: without shiki the bundle
|
|
24
|
+
never gets built, so the fallback is never reached.
|
|
23
25
|
|
|
24
26
|
A block with no `:lang` never loads a grammar at all.
|
|
25
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@podlite/highlight",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Syntax highlighting for Podlite code blocks, shared by the renderer and the editor",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"test": "yarn g:jest --passWithNoTests"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@podlite/schema": "0.0.
|
|
26
|
+
"@podlite/schema": "0.0.69"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|