options.createElement is not a function
lukemarsh opened this issue · 2 comments
lukemarsh commented
I'm getting an error when using the info configuration:
options.createElement is not a function Please report this to https://github.com/markedjs/marked.
Any ideas?
storiesOf("Colours", module).addWithChapters("Colours", {
useTheme: false,
chapters: [
{
sections: [
{
title: "This is a Section's Title",
subtitle: "Each section can be used to render a component",
info: `hello`,
sectionFn: () => (
<div>
{Object.entries(colours).map((key, index) => {
return (
<div key={index} className={styles.colour}>
<Colour background={key[1]} />
<div>{key[0]}</div>
<div>{key[1]}</div>
</div>
);
})}
</div>
),
options: {
showSource: false,
allowSourceToggling: false,
showPropTables: false,
allowPropTablesToggling: false
}
}
]
}
]
});
brandonellis commented
Did you change the dependency of the marksy
repo to be greater than 2.0.0
?
brandonellis commented
Shouldn't be any issue here, especially with the migration to Storybook 4. Closing issue due to inactivity.