0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 17:22:49 +00:00

added an internal nested div on block elements

This commit is contained in:
Scott Tolksdorf
2017-02-26 20:18:44 -05:00
parent 0705e08381
commit 4c874149fb
4 changed files with 46 additions and 34 deletions

View File

@@ -13,11 +13,11 @@ renderer.paragraph = function(text){
if(text) r.push(Markdown(text, {renderer : renderer, sanitize: true}));
const block = matches[matchIndex];
if(block && block[0] == '{'){
r.push(`\n\n<div class="block ${block.substring(2).split(',').join(' ')}">`);
r.push(`\n\n<div class="block ${block.substring(2).split(',').join(' ')}"><div class="internal">`);
blockCount++;
}
if(block == '}}' && blockCount !== 0){
r.push('</div>\n\n');
r.push('</div></div>\n\n');
blockCount--;
}
matchIndex++;