;
}
function HomePage() {
let library = 'None';
if (window.marked) {
library = 'marked';
} else if (window.markdownit) {
library = 'markdown-it';
} else if (window.remarkable) {
library = 'Remarkable';
}
return (
<>
DataFormsJS React <Markdown> Component with [{library}] Markdown Library
{/*
To display markdown from a web service or site only [url] needs to be included:
The example below shows additional options to show a loading screen while
content is being fetched, define a root class, and to update links after
the markdown has been rendered.
These attributes make it easy to show content that links to other sites correctly
and for the current page not to be changed when the user clicks a link.
*/}
}
linkTarget="_blank"
linkRel="noopener"
linkRootUrl="https://github.com/dataformsjs/dataformsjs/blob/master/"
/>
>
)
}
{/*
To see the image error add the prop:
useRootUrl={false}
To
*/}
function LocalPage() {
return (
<>
By default unless [useRootUrl=false] is used content that points to relative URL's will automatically be handled based on the path of the Markdown Document.