Skip to content

Commit 45462ec

Browse files
cajamesQingWei-Li
authored andcommitted
Vue Single File templates seem to only support one script tag (QingWei-Li#35)
1 parent 3bde341 commit 45462ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/markdown-compiler.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ var renderVueTemplate = function(html, wrapper) {
4141

4242
var output = {
4343
style: $.html("style"),
44-
script: $.html("script")
44+
// get only the first script child. Causes issues if multiple script files in page.
45+
script: $.html($('script').first()),
4546
};
4647
var result;
4748

0 commit comments

Comments
 (0)