Come up with working regex replacement for special tags.
This commit is contained in:
parent
65f563356c
commit
edf00ed0da
|
@ -35,7 +35,9 @@ export class MarkdownBlock extends Component {
|
||||||
return highlighter.highlightAuto(code_).value;
|
return highlighter.highlightAuto(code_).value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let rawMarkup = md.render(this.props.content || '');
|
let markdownContent = this.props.content || '';
|
||||||
|
markdownContent = markdownContent.replace(new RegExp('\\[:greeting:]\\[name=(.*)]'), '<x-greeting name=$1 />');
|
||||||
|
let rawMarkup = md.render(markdownContent);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span
|
<span
|
||||||
|
|
Loading…
Reference in New Issue