Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/helpers/markdownToState.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {convertFromRaw} from 'draft-js'
import _ from 'lodash'
const Remarkable = require('remarkable')

// Block level items, key is Remarkable's key for them, value returned is
Expand Down Expand Up @@ -294,7 +295,7 @@ function markdownToState(markdown, options = {}) {

return convertFromRaw({
entityMap,
blocks
blocks: _.filter(blocks, b => b.text)
})
}

Expand Down