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

Pseudo element borders are working, holy shit

This commit is contained in:
Scott Tolksdorf
2017-03-19 13:17:33 -04:00
parent 393df1b181
commit 30d3fcf168
7 changed files with 127 additions and 69 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(' ')}"><div class="internal">`);
r.push(`\n\n<div class="block ${block.substring(2).split(',').join(' ')}">`);
blockCount++;
}
if(block == '}}' && blockCount !== 0){
r.push('</div></div>\n\n');
r.push('</div>\n\n');
blockCount--;
}
matchIndex++;