Comparing version 0.0.13 to 0.0.14
@@ -21,2 +21,5 @@ 'use strict'; | ||
return '\\begin{codeBlock}' + params + '{' + extra.language + '}' + ('\n' + _code + '\n\\end{codeBlock}\n\n'); | ||
}, | ||
table: function table(innerText) { | ||
return innerText; | ||
} | ||
@@ -53,2 +56,4 @@ }; | ||
node.caption = caption; // allows to add caption to the default processing | ||
node.children = node.children.filter(function (node) { | ||
@@ -55,0 +60,0 @@ return node.type !== 'figcaption'; |
@@ -19,2 +19,5 @@ 'use strict'; | ||
handlers.text = require('./types/text'); | ||
handlers.link = require('./types/link'); | ||
handlers.list = require('./types/list'); | ||
handlers.listItem = require('./types/listItem'); | ||
handlers.break = require('./types/break'); | ||
@@ -21,0 +24,0 @@ handlers.code = require('./types/code'); |
@@ -18,3 +18,7 @@ 'use strict'; | ||
colHeader += 'c|'.repeat(cols); | ||
return '\\begin{longtabu}{' + colHeader + '} \\hline\n' + inner + '\\end{longtabu}\n\n'; | ||
var addendum = ''; | ||
if (node.caption) { | ||
addendum = '\n\\tablecaption{' + node.caption + '}\n'; | ||
} | ||
return '\\begin{longtabu}{' + colHeader + '} \\hline\n' + inner + addendum + '\\end{longtabu}\n\n'; | ||
}; | ||
@@ -21,0 +25,0 @@ |
{ | ||
"name": "rebber", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Stringifies MDAST to LaTeX", | ||
@@ -43,3 +43,4 @@ "repository": "https://github.com/zestedesavoir/zmarkdown/tree/master/packages/rebber", | ||
"jest": "^20.0.4", | ||
"remark-captions": "^0.0.7", | ||
"remark-align": "^0.0.18", | ||
"remark-captions": "^0.0.8", | ||
"remark-emoticons": "^0.0.16", | ||
@@ -46,0 +47,0 @@ "remark-parse": "^3.0.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
18562
33
484
1
18
13