Comparing version 0.0.29 to 0.0.30
@@ -10,6 +10,9 @@ 'use strict'; | ||
var defaultMacros = { | ||
CenterAligned: function CenterAligned(innerText) { | ||
leftAligned: function leftAligned(innerText) { | ||
return '\n\n' + innerText + '\n\n'; | ||
}, | ||
centerAligned: function centerAligned(innerText) { | ||
return '\n\\begin{center}\n' + innerText + '\n\\end{center}\n'; | ||
}, | ||
RightAligned: function RightAligned(innerText) { | ||
rightAligned: function rightAligned(innerText) { | ||
return '\n\\begin{flushright}\n' + innerText + '\n\\end{flushright}\n'; | ||
@@ -16,0 +19,0 @@ }, |
{ | ||
"name": "rebber", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"description": "Stringifies MDAST to LaTeX", | ||
@@ -46,3 +46,3 @@ "repository": "https://github.com/zestedesavoir/zmarkdown/tree/master/packages/rebber", | ||
"remark-abbr": "^1.0.1", | ||
"remark-align": "^1.0.1", | ||
"remark-align": "^1.0.2", | ||
"remark-captions": "^1.0.0", | ||
@@ -52,5 +52,5 @@ "remark-emoticons": "^0.0.21", | ||
"remark-parse": "^4.0.0", | ||
"remark-sub-super": "^1.0.1", | ||
"remark-sub-super": "^1.0.2", | ||
"unified": "^6.1.5" | ||
} | ||
} |
@@ -8,4 +8,5 @@ /* Dependencies. */ | ||
const defaultMacros = { | ||
CenterAligned: (innerText) => `\n\\begin{center}\n${innerText}\n\\end{center}\n`, | ||
RightAligned: (innerText) => `\n\\begin{flushright}\n${innerText}\n\\end{flushright}\n`, | ||
leftAligned: (innerText) => `\n\n${innerText}\n\n`, | ||
centerAligned: (innerText) => `\n\\begin{center}\n${innerText}\n\\end{center}\n`, | ||
rightAligned: (innerText) => `\n\\begin{flushright}\n${innerText}\n\\end{flushright}\n`, | ||
defaultType: (innerText, type) => `\n\\begin{${type}}\n${innerText}\n\\end{${type}}\n`, | ||
@@ -12,0 +13,0 @@ } |
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
53864
1569