Skip to content

Commit

Permalink
Fix markdown lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustem Mussabekov committed Mar 7, 2024
1 parent 534b16a commit d68ad9a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app",
"version": "5.6.20",
"version": "5.6.21",
"description": "",
"author": "",
"license": "ISC",
Expand Down
11 changes: 11 additions & 0 deletions src/co/bookmarks/item/view.module.styl
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
-webkit-box-orient: vertical
overflow: hidden
overflow: clip
}

.title, .excerpt {
white-space: pre
white-space: pre-wrap
}
Expand All @@ -126,6 +129,14 @@
font-size: 100%
}

ul {
padding-inline-start: 1em;
}

ol {
padding-inline-start: 1.2em;
}

* {
margin: 0
}
Expand Down
4 changes: 2 additions & 2 deletions src/co/common/safeMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ function safe(html) {
return {
dangerouslySetInnerHTML: {
__html: DOMPurify.sanitize(
marked.parseInline(html, { silent: true }),
marked.parse(html, { silent: true, breaks: true }),
{
ALLOWED_TAGS: ['i', 'b', 'strong', 'ul', 'ol', 'li', 'pre', 'code', 'em', 'blockquote', 'a']
ALLOWED_TAGS: ['i', 'b', 'strong', 'ul', 'ol', 'li', 'pre', 'code', 'em', 'blockquote', 'a', 'p']
}
)
}
Expand Down

0 comments on commit d68ad9a

Please sign in to comment.