Skip to content

Commit

Permalink
build(scripts): update convert_html()
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Jul 31, 2019
1 parent f212f54 commit 0badbaf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/build-demo-docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ def convert_html(html):
class_name = ''
tag_left = html.find(span_head)
if tag_left == -1:
xml += html
break
xml += html[:tag_left]
tag_right = html.find('>')
Expand Down Expand Up @@ -253,16 +254,16 @@ def blockcode(self, text, lang):

def emphasis(self, text):
return '[b]{}[/b]'.format(text)

def double_emphasis(self, text):
return '[b]{}[/b]'.format(text)

def triple_emphasis(self, text):
return '[b]{}[/b]'.format(text)

def paragraph(self, text):
return '<w type="p">{}</w>\n'.format(text)

def codespan(self, text):
return '[color=#bd4147][bgcolor=#fdf4f4]'\
' {} [/bgcolor][/color]'.format(text.strip())
Expand Down

0 comments on commit 0badbaf

Please sign in to comment.