mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 15:05:50 +00:00
Merge pull request #240 from creative-commoners/pulls/master/mailto-links
FIX Ensure mailto links work as expected.
This commit is contained in:
commit
0c11aaf85f
@ -41,6 +41,15 @@ const rewriteLink = (
|
||||
const currentNode = getCurrentNode();
|
||||
const version = getCurrentVersion();
|
||||
|
||||
// mailto links
|
||||
if (href.startsWith('mailto:')) {
|
||||
return createElement(
|
||||
'a',
|
||||
{ href },
|
||||
domToReact(children, parseOptions)
|
||||
);
|
||||
}
|
||||
|
||||
// hash links
|
||||
if (href.startsWith('#')) {
|
||||
return createElement(
|
||||
|
Loading…
x
Reference in New Issue
Block a user