Skip to content

Commit

Permalink
fix: inconsistent font size in special blocks. #136
Browse files Browse the repository at this point in the history
  • Loading branch information
redimp committed Sep 4, 2024
1 parent 8794654 commit 44a308b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions otterwiki/renderer_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,6 @@ def render_html_fancy_block(self, text, family, header):
else:
header = ""
text = text.strip()
if text.startswith('<p>'):
text = text[3:]
if text.endswith('</p>'):
text = text[:-4]
return (
f'<div class="{cls} mb-20" role="alert">{header}\n{text}</div>\n'
)
Expand Down
4 changes: 4 additions & 0 deletions otterwiki/static/css/otterwiki.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ pre,
overflow: auto;
}

.page > .alert > p {
margin-block-end: 0.2em;
}

.dark-mode code,
.dark-mode pre,
.dark-mode .code {
Expand Down

0 comments on commit 44a308b

Please sign in to comment.