projects
/
rainny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7e2540
)
Replace gfmHtml with gfmHtml() as per #282
author
ajbura
<ajbura@gmail.com>
Thu, 3 Feb 2022 15:05:02 +0000
(20:35 +0530)
committer
ajbura
<ajbura@gmail.com>
Thu, 3 Feb 2022 15:05:02 +0000
(20:35 +0530)
src/client/state/RoomsInput.js
patch
|
blob
|
history
diff --git
a/src/client/state/RoomsInput.js
b/src/client/state/RoomsInput.js
index bc01f22e078dbf01c8ee935b1134c97c228e7931..3bb36887ff5a003ea5e63a907f1c26b7f679d95f 100644
(file)
--- a/
src/client/state/RoomsInput.js
+++ b/
src/client/state/RoomsInput.js
@@
-86,7
+86,7
@@
function getVideoThumbnail(video, width, height, mimeType) {
function getFormattedBody(markdown) {
const result = micromark(markdown, {
extensions: [gfm(), spoilerExtension()],
- htmlExtensions: [gfmHtml, spoilerExtensionHtml],
+ htmlExtensions: [gfmHtml
()
, spoilerExtensionHtml],
});
const bodyParts = result.match(/^(<p>)(.*)(<\/p>)$/);
if (bodyParts === null) return result;