Commit Graph

8 Commits

Author SHA1 Message Date
Cadence Ember 017f30be65
Also format m.notice
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2020-11-05 17:39:21 +13:00
Cadence Ember a7165fe633
Fix purify and highlight
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
- purify: apply target=_blank to links
- purify: remove ALLOWED_URI_REGEXP - this breaks external links in
  anchor elements
- purify: return a DOM fragment instead of a string
- postprocess: only highlight pre
- postprocess: remove nested code inside pre
- better style messages with css
2020-11-05 17:37:00 +13:00
Bad 20e94f05e7 Lazy load highlight.js
This significantly reduces the bundle size(over 1MiB!) but it also uses
some hacks to dynamically load browserify modules on runtime(see
lazy-load-modules.js
2020-10-31 18:17:34 +01:00
Bad f80bf36991 Style fixes 2020-10-29 11:09:15 +01:00
Bad bd9623578f Add hljs and improve sanitization
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details
2020-10-29 10:42:17 +01:00
Bad d983385e16 Fix compiler warnings 2020-10-26 22:58:38 +01:00
Bad f46f9abe6e Improve rich text rendering to more closely match the recommendations from the spec 2020-10-26 22:55:54 +01:00
BadAtNames 72b42e7b26 Initial work on rich messages 2020-10-26 21:04:08 +01:00