File tree 4 files changed +15
-1
lines changed
4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change
1
+ < div > self closing?</ div >
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ const src = './docs-src/pages/';
13
13
const dist = './docs/' ;
14
14
const md = './docs-src/md' ;
15
15
16
- const options = { } ;
16
+ const options = {
17
+ recognizeSelfClosing : true
18
+ } ;
17
19
18
20
readdirSync ( src ) . forEach ( file => {
19
21
const html = readFileSync ( path . resolve ( `${ src } ${ file } ` ) , 'utf-8' ) ;
@@ -27,6 +29,10 @@ readdirSync(src).forEach(file => {
27
29
locals : {
28
30
title : 'PostHTML Components'
29
31
}
32
+ } ,
33
+ parserOptions : {
34
+ // Don't work
35
+ recognizeSelfClosing : false
30
36
}
31
37
} ) ,
32
38
Original file line number Diff line number Diff line change 3
3
< div class ="col-lg-8 ">
4
4
< h1 class ="display-1 fw-bold mb-4 "> Playground</ h1 >
5
5
6
+ < h2 > Self closing tag</ h2 >
7
+ < x-test .self-closing />
8
+ < p > Works?</ p >
9
+
6
10
< x-test .div1 aware:myprop ="My CUSTOM prop in div1 ">
7
11
< x-test .div2 >
8
12
< x-test .div3 >
Original file line number Diff line number Diff line change 47
47
< div class ="row ">
48
48
< div class ="col-lg-8 ">
49
49
< h1 class ="display-1 fw-bold mb-4 "> Playground</ h1 >
50
+ < h2 > Self closing tag</ h2 >
51
+ < div > self closing?</ div >
52
+ < p > Works?</ p >
50
53
< div >
51
54
div1: My CUSTOM prop in div1
52
55
< div >
You can’t perform that action at this time.
0 commit comments