'c': [0, 33], # <code> tags
'#': [0, 36], # #hashtags
'@': [0, 32], # @mentions of a user
+ '_': [0, 4], # <em> tags
's': [0, 1], # <strong> tags
'u': [0, 1, 4, 34], # URL
'M': [0, 1, 4, 35], # media URL
self.colourstack.append('s')
return
+ if tag == "em":
+ self.colourstack.append('_')
+ return
+
# FIXME: need <pre>, e.g. in
# https://neuromatch.social/@mstimberg/111375114784712346
# and _perhaps_ that ought to generate paragraphs with a
self.paras.append(Paragraph())
return
- if tag in {"a", "code", "strong"}:
+ if tag in {"a", "code", "strong", "em"}:
self.colourstack.pop()
return