Skip to content

Commit

Permalink
modify the line break 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
madneal committed Jun 9, 2017
1 parent d9ab7e0 commit 594d6ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function processParagraph (p) {
p.text = '![' + p.text + '](' + imageSrc + ')' + ' \n'
break
case 6:
markup = '> '
markup = '> '
break
case 7:
p.text = '> # ' + p.text.replace(/\n/g, '\n> #')
Expand All @@ -168,14 +168,15 @@ function processParagraph (p) {
p.text = '\n <iframe src="https://medium.com/media/' + p.iframe.mediaResourceId + '" frameborder=0></iframe>'
break
case 13:
markup = '\n ### '
markup = '### '
break
case 15:
p.text = '*' + p.text + '*'
break
}

p.text = markup + p.text
p.text = markup + p.text + '\n'

if (p.alignment === 2 && p.type !== 6 && p.type !== 7) {
p.text = '<center>' + p.text + '</center>'
}
Expand Down

0 comments on commit 594d6ff

Please sign in to comment.