0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 19:32:45 +00:00

Column split now a key word

This commit is contained in:
Scott Tolksdorf
2017-02-26 19:38:42 -05:00
parent 234d216d64
commit e112808706
9 changed files with 57 additions and 6 deletions

View File

@@ -31,6 +31,9 @@ module.exports = {
marked : Markdown,
render : (rawBrewText)=>{
blockCount = 0;
rawBrewText = rawBrewText.replace(/\\column/g, '{{columnSplit }}')
let html = Markdown(rawBrewText, {renderer : renderer, sanitize: true});
//Close all hanging block tags
html += _.times(blockCount, ()=>{return '</div>'}).join('\n');