expressive-code-links 1.2.0 → 1.2.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/README.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
A plugin for https://expressive-code.com/
|
|
4
4
|
|
|
5
|
-
Allows you to add links to code blocks, by prepending them with
|
|
5
|
+
Allows you to add links to code blocks, by prepending them with `\`:
|
|
6
6
|
|
|
7
7
|
```js
|
|
8
|
-
// comes from
|
|
9
|
-
import { pluginLink } from '
|
|
8
|
+
// comes from \[towc/expressive-code-links](https://github.com/towc/expressive-code-links)
|
|
9
|
+
import { pluginLink } from '\[expressive-code-links](https://www.npmjs.com/package/expressive-code-links)'
|
|
10
10
|
|
|
11
11
|
// can have multiple links in one line!
|
|
12
|
-
// usage as per
|
|
12
|
+
// usage as per \[expressive code](https://expressive-code.com)'s \[plugin documentation](https://expressive-code.com/reference/configuration/#plugins)
|
|
13
13
|
|
|
14
|
-
// so for
|
|
14
|
+
// so for \[astro](https://astro.build/):
|
|
15
15
|
export default defineConfig({
|
|
16
16
|
integrations: [
|
|
17
17
|
expressiveCode({
|
|
@@ -25,7 +25,7 @@ const array = [(x) => x]
|
|
|
25
25
|
const one = array[0](1)
|
|
26
26
|
|
|
27
27
|
const README = { md: 2 }
|
|
28
|
-
const
|
|
28
|
+
const \[link](README.md) = 0
|
|
29
29
|
const two = array [link](README.md)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -55,7 +55,7 @@ The color of the link is inherited from what the underlying text should be. The
|
|
|
55
55
|
|
|
56
56
|
## Bugs
|
|
57
57
|
|
|
58
|
-
- [ ] doesn't allow escaping of the link, e.g.
|
|
58
|
+
- [ ] doesn't allow escaping of the link, e.g. `\\[link](href)` still renders as `\<a href="href">link</a>`
|
|
59
59
|
- not planning to implement, let me know if this affects you!
|
|
60
60
|
- [ ] breaks when spanning multiple elements
|
|
61
61
|
- not planning to fix, let me know if you have a legitimate usecase!
|
package/package.json
CHANGED