@@ -102,7 +102,7 @@ const DefaultBlockStyles = {
102
102
} ;
103
103
104
104
// Remarkable blocks that stands alone.
105
- const DefaultRemarkableSingletons = [
105
+ const DefaultRemarkableStandaloneBlocks = [
106
106
'hr' ,
107
107
'fence'
108
108
]
@@ -235,7 +235,7 @@ function markdownToDraft(string, options = {}) {
235
235
const BlockTypes = Object . assign ( { } , DefaultBlockTypes , options . blockTypes || { } ) ;
236
236
const BlockEntities = Object . assign ( { } , DefaultBlockEntities , options . blockEntities || { } ) ;
237
237
const BlockStyles = Object . assign ( { } , DefaultBlockStyles , options . blockStyles || { } ) ;
238
- const RemarkableSingletons = DefaultRemarkableSingletons . concat ( options . remarkableSingletons )
238
+ const RemarkableStandaloneBlocks = DefaultRemarkableStandaloneBlocks . concat ( options . remarkableStandaloneBlocks )
239
239
240
240
parsedData . forEach ( function ( item ) {
241
241
// Because of how remarkable's data is formatted, we need to cache what kind of list we're currently dealing with
@@ -261,7 +261,7 @@ function markdownToDraft(string, options = {}) {
261
261
262
262
// The entity map is a master object separate from the block so just add any entities created for this block to the master object
263
263
Object . assign ( entityMap , blockEntities ) ;
264
- } else if ( ( itemType . indexOf ( '_open' ) !== - 1 || RemarkableSingletons . includes ( itemType ) ) && BlockTypes [ itemType ] ) {
264
+ } else if ( ( itemType . indexOf ( '_open' ) !== - 1 || RemarkableStandaloneBlocks . includes ( itemType ) ) && BlockTypes [ itemType ] ) {
265
265
var depth = 0 ;
266
266
var block ;
267
267
0 commit comments