mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
fix markdown code block without language attribute
This commit is contained in:
@@ -5,6 +5,7 @@ import styled from "styled-components";
|
||||
import { MemoryRouter } from "react-router-dom";
|
||||
|
||||
import TestPage from "./__resources__/test-page.md";
|
||||
import MarkdownWithoutLang from "./__resources__/markdown-without-lang.md";
|
||||
|
||||
const Spacing = styled.div`
|
||||
padding: 2em;
|
||||
@@ -16,4 +17,9 @@ storiesOf("MarkdownView", module)
|
||||
<Spacing>
|
||||
<MarkdownView content={TestPage} skipHtml={false} />
|
||||
</Spacing>
|
||||
))
|
||||
.add("Code without Lang", () => (
|
||||
<Spacing>
|
||||
<MarkdownView content={MarkdownWithoutLang} skipHtml={false} />
|
||||
</Spacing>
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user