0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-23 14:23:21 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Trevor Buckner
aa62b32936 handle header padding 2025-03-25 19:36:25 -04:00
Trevor Buckner
4aa5a00a6d test 2025-03-25 18:02:12 -04:00
2 changed files with 10 additions and 1 deletions

View File

@@ -381,11 +381,17 @@ const forcedParagraphBreaks = {
tokenizer(src, tokens) {
const regex = /^(:+)(?:\n|$)/ym;
const match = regex.exec(src);
if(match?.length) {
let extraBreak = 0;
const lastToken = tokens[tokens.length - 1];
if(lastToken?.type == 'text')
extraBreak = 1;
return {
type : 'hardBreaks', // Should match "name" above
raw : match[0], // Text to consume from the source
length : match[1].length,
length : match[1].length + extraBreak,
text : ''
};
}

View File

@@ -137,6 +137,9 @@
line-height : 0.951em; //Font is misaligned. Shift up slightly
& + * { margin-top : 0.2cm; }
}
br + h3, br + h4 {
margin-top : 0;
}
// *****************************
// * TABLE
// *****************************/