Skip to content

Commit f296006

Browse files
committed
fixing codepen tag
1 parent f57a9cd commit f296006

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tags.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11

22
exports.codepen = {
3-
add: function(line, curTagData, scope, docMap, defaultWriteProp, options) {
3+
add: function(line, curData, scope, docMap, defaultWriteProp, options) {
44
var html = "<div class='codepen'></div>";
5+
var validCurData = (curData && curData.length !== 2);
56
var useCurData = validCurData && (typeof curData.description === "string") && !curData.body;
67

78
// copies codepen options on to the docObject so they are accessible by the script

0 commit comments

Comments
 (0)