Skip to content

Commit

Permalink
Support line breaks in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustem Mussabekov committed May 21, 2024
1 parent 25e07b9 commit 52ac891
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/co/bookmarks/dnd/drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class BookmarksDropArea extends React.Component {
}

onUploadFile = async(file)=>{
if (/\.(html|csv|json)$/i.test(file.name)){
if (/\.(html|csv|json|enex)$/i.test(file.name)){
const openImport = await Confirm(
'Hmmm... wait a minute',
{
Expand Down
2 changes: 1 addition & 1 deletion src/co/common/safeMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function safe(html) {
__html: DOMPurify.sanitize(
marked.parse(html, { silent: true, breaks: true }),
{
ALLOWED_TAGS: ['i', 'b', 'strong', 'ul', 'ol', 'li', 'pre', 'code', 'em', 'blockquote', 'a', 'p']
ALLOWED_TAGS: ['i', 'b', 'strong', 'ul', 'ol', 'li', 'pre', 'code', 'em', 'blockquote', 'a', 'p', 'br']
}
)
}
Expand Down

0 comments on commit 52ac891

Please sign in to comment.