ventojs 2.0.0-canary.3 → 2.0.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 +4 -1
- package/highlightjs-vento.js +1 -1
- package/package.json +1 -1
- package/prism-vento.js +3 -3
package/CHANGELOG.md
CHANGED
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
-
## 2.0.0 -
|
7
|
+
## [2.0.0] - 2025-09-01
|
8
8
|
Vento 2.0 is now dependency-free and compatible with browsers without a build step.
|
9
9
|
|
10
10
|
### Added
|
@@ -33,6 +33,7 @@ Vento 2.0 is now dependency-free and compatible with browsers without a build st
|
|
33
33
|
-- }
|
34
34
|
++ env.compileTokens(tokens, tmpOutput, "/code");
|
35
35
|
```
|
36
|
+
- Prism and Highlight.js adapters: Rename language name to `vto` (from `vento`).
|
36
37
|
|
37
38
|
### Removed
|
38
39
|
- `runStringSync` function.
|
@@ -50,3 +51,5 @@ Vento 2.0 is now dependency-free and compatible with browsers without a build st
|
|
50
51
|
[#134]: https://github.com/ventojs/vento/issues/134
|
51
52
|
[#137]: https://github.com/ventojs/vento/issues/137
|
52
53
|
[#140]: https://github.com/ventojs/vento/issues/140
|
54
|
+
|
55
|
+
[2.0.0]: https://github.com/ventojs/vento/releases/tag/v2.0.0
|
package/highlightjs-vento.js
CHANGED
package/package.json
CHANGED
package/prism-vento.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Prism.languages.
|
1
|
+
Prism.languages.vto = {
|
2
2
|
"delimiter": {
|
3
3
|
pattern: /\{{2}[->]?|-?\}{2}/,
|
4
4
|
alias: "punctuation",
|
@@ -16,11 +16,11 @@ Prism.hooks.add("before-tokenize", function (env) {
|
|
16
16
|
const ventoPattern = /\{{2}[\s\S]+\}{2}/g;
|
17
17
|
Prism.languages["markup-templating"].buildPlaceholders(
|
18
18
|
env,
|
19
|
-
"
|
19
|
+
"vto",
|
20
20
|
ventoPattern,
|
21
21
|
);
|
22
22
|
});
|
23
23
|
|
24
24
|
Prism.hooks.add("after-tokenize", function (env) {
|
25
|
-
Prism.languages["markup-templating"].tokenizePlaceholders(env, "
|
25
|
+
Prism.languages["markup-templating"].tokenizePlaceholders(env, "vto");
|
26
26
|
});
|