Hi,
I am using the following code to render an ADF document:
import { ReactRenderer } from '@atlaskit/renderer';
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
const extensionHandlers: ExtensionHandlers = {
'com.atlassian.confluence.macro.core': (ext) => {
console.log('extensionHandlers', ext);
const { extensionKey } = ext;
switch (extensionKey) {
case 'roadmap':
return (
<div>Custom Render of extension Roadmap</div>
);
default:
return null;
}
},
}
<ReactRenderer document={adfDoc} extensionHandlers={extensionHandlers} allowCopyToClipboard={true} allowColumnSorting={true} allowAnnotations={true}
Instead of create a custom extension handler for the ‘roadmap’ extions I would like render it directly in the same way you see it in a Confluence page. How can I use the default extensionHandler for the roadmap macro?