Skip to content

Info description strings containing React components get rendered as React components #2207

@danielduan

Description

@danielduan

If I pass in a React component to withInfo(markdown)

const markdown = `
~~~js
  // source file for button
  <Button />;
~~~
`;

This will actually render <Button /> into <button></button>

workaround is to escape the <

caused by marksy: storybookjs/marksy#26

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions