We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 267268b commit a18d213Copy full SHA for a18d213
1 file changed
src/components/riic/richText2HTML.js
@@ -3,6 +3,7 @@ const getTermId = str => str.replace(/^\W/, '').replace(/\W/g, '_');
3
4
export const richText2HTML = text => {
5
const result = text
6
+ .replace(/(<@[^<>]+>)(<\$[^<>]+>)/g, '$2$1')
7
.replace(/<([^<>]+)>([^<>]+)<\/>/g, (str, key, value) => {
8
if (key.startsWith('@cc.')) {
9
return `{{span class="riic-rt ${getClassName(key)}"}}${value}{{/span}}`;
0 commit comments