Merge branch 'main' of https://github.com/Discours/discours-backend into main
This commit is contained in:
@@ -417,15 +417,17 @@ class HTML2Text(HTMLParser.HTMLParser):
|
||||
self.o('`') # NOTE: same as <code>
|
||||
self.span_hightlight = True
|
||||
elif attrs['class'] == 'lead':
|
||||
self.o('==') # NOTE: but CriticMarkup uses {== ==}
|
||||
self.span_lead = True
|
||||
if self.span_lead == False:
|
||||
self.o('==\n') # NOTE: but CriticMarkup uses {== ==}
|
||||
self.span_lead = True
|
||||
else:
|
||||
if self.span_hightlight:
|
||||
self.o('`')
|
||||
self.span_hightlight = False
|
||||
elif self.span_lead:
|
||||
self.o('==')
|
||||
self.span_lead = False
|
||||
if self.span_lead == True:
|
||||
self.o('\n==')
|
||||
self.span_lead = False
|
||||
|
||||
if tag in ['p', 'div']:
|
||||
if self.google_doc:
|
||||
|
0
migration/content/.gitkeep
Normal file
0
migration/content/.gitkeep
Normal file
0
migration/content/article/.gitkeep
Normal file
0
migration/content/article/.gitkeep
Normal file
0
migration/content/image/.gitkeep
Normal file
0
migration/content/image/.gitkeep
Normal file
0
migration/content/music/.gitkeep
Normal file
0
migration/content/music/.gitkeep
Normal file
0
migration/content/prose/.gitkeep
Normal file
0
migration/content/prose/.gitkeep
Normal file
0
migration/content/video/.gitkeep
Normal file
0
migration/content/video/.gitkeep
Normal file
Reference in New Issue
Block a user