10000 Add `xast` · jletey/unifiedjs.github.io@0749b35 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0749b35

Browse files
committed
Add xast
1 parent 974404c commit 0749b35

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

asset/index.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,12 @@ abbr {
291291
color: hsl(45, 97%, 43%);
292292
}
293293

294+
.xast .hl,
295+
.content .xast:hover .hl,
296+
.content .xast:focus .hl {
297+
color: hsl(261, 51%, 51%);
298+
}
299+
294300
.redot .hl,
295301
.dotast .hl,
296302
.content .redot:hover .hl,

dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@ retext
4141
unist
4242
unified
4343
vfile
44+
xast
4445
xo

doc/learn/introduction-to-unified.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ The specifications for syntax trees:
7272
* unist — Universal Syntax Tree
7373
* mdast — Markdown Abstract Syntax Tree format
7474
* hast — HTML Abstract Syntax Tree format
75+
* xast — XML Abstract Syntax Tree format
7576
* nlcst — Natural Language Concrete Syntax Tree format
7677

7778
Other building blocks:

generate/plugin/rehype-link.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ function initialise() {
4141
'nl|cst': 'syntax-tree/nlcst',
4242
'md|ast': 'syntax-tree/mdast',
4343
'h|ast': 'syntax-tree/hast',
44+
'x|ast': 'syntax-tree/xast',
4445
'dot|ast': 'redotjs/dotast',
4546
'MD|X': 'mdx-js/mdx'
4647
}

generate/util/constant-topic.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = [
1010
'unist-util',
1111
'mdast-util',
1212
'hast-util',
13+
'xast-util',
1314
'nlcst-util',
1415
'vfile-util',
1516
'unifiedjs'

0 commit comments

Comments
 (0)
0