File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ function markdownToState(markdown, options = {}) {
260260
261261 // when there is no content, add empty paragraph
262262 if ( parsedData . length === 0 ) {
263- blocks . push ( getNewBlock ( BlockTypes [ 'paragraph_open' ] ( ) ) ) ;
263+ blocks . push ( getNewBlock ( BlockTypes [ 'paragraph_open' ] ( ) ) )
264264 }
265265
266266 parsedData . forEach ( ( item ) => {
@@ -353,26 +353,26 @@ function markdownToState(markdown, options = {}) {
353353 } , DefaultBlockType )
354354 }
355355
356- let result ;
356+ let result
357357 try {
358358 result = convertFromRaw ( {
359359 entityMap,
360360 blocks,
361- } ) ;
361+ } )
362362 } catch ( error ) {
363363 // If any error occurs set value to plain text
364- const plainTextBlock = getNewBlock ( BlockTypes [ 'paragraph_open' ] ( ) ) ;
365- plainTextBlock . text = markdown ;
366-
364+ const plainTextBlock = getNewBlock ( BlockTypes [ 'paragraph_open' ] ( ) )
365+ plainTextBlock . text = markdown
366+
367367 result = convertFromRaw ( {
368368 entityMap : [ ] ,
369369 blocks : [ plainTextBlock ] ,
370- } ) ;
370+ } )
371371
372372 Alert . warning ( 'Some message could not be rendered properly, please contact Topcoder Support' )
373373 }
374374
375- return result ;
375+ return result
376376}
377377
378378export default markdownToState
You can’t perform that action at this time.
0 commit comments