File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ module.exports = function attacher({ liveFilter } = {}) {
66
66
. replace ( / < / g, "<" )
67
67
. replace ( / > / g, ">" ) } "`
68
68
: ""
69
- } / >`;
69
+ } ></vue-live >`;
70
70
71
71
node . type = "html" ;
72
72
node . value = markdownGenerated ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ test("transform fenced into vue-live with live flag", () => {
17
17
expect ( String ( file ) ) . toMatchInlineSnapshot ( `
18
18
"<vue-live
19
19
:layout-props=\\"{lang:'vue'}\\"
20
- :code=\\"\`<comp/>\`\\" / >
20
+ :code=\\"\`<comp/>\`\\" ></vue-live >
21
21
"
22
22
` ) ;
23
23
}
@@ -63,7 +63,7 @@ test("transform custom fenced into vue-live", () => {
63
63
expect ( String ( file ) ) . toMatchInlineSnapshot ( `
64
64
"<vue-live
65
65
:layout-props=\\"{lang:'pizza'}\\"
66
- :code=\\"\`<comp/>\`\\" / >
66
+ :code=\\"\`<comp/>\`\\" ></vue-live >
67
67
"
68
68
` ) ;
69
69
}
@@ -91,7 +91,7 @@ const a = require('test/req')
91
91
:requires=\\"{'test/import': require('test/import'),'test/req': require('test/req')}\\"
92
92
:code=\\"\`import b from 'test/import'
93
93
const a = require('test/req')
94
- <comp/>\`\\" / >
94
+ <comp/>\`\\" ></vue-live >
95
95
"
96
96
` ) ;
97
97
}
@@ -115,7 +115,7 @@ test("transform require and import statements", () => {
115
115
"<vue-live
116
116
:layout-props=\\"{lang:'js'}\\"
117
117
:code=\\"\`<comp/>\`\\"
118
- :editor-props=\\"{"lineNumbers": true}\\" / >
118
+ :editor-props=\\"{"lineNumbers": true}\\" ></vue-live >
119
119
"
120
120
` ) ;
121
121
}
You can’t perform that action at this time.
0 commit comments