Fix css syntax highlighting conflict with bulma title

This commit is contained in:
Sebastian Sdorra
2020-10-26 15:24:54 +01:00
parent 19bd660ddb
commit 99dae1c1bc
6 changed files with 187 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ import JavaHttpServer from "./__resources__/HttpServer.java";
import GoHttpServer from "./__resources__/HttpServer.go";
import JsHttpServer from "./__resources__/HttpServer.js";
import PyHttpServer from "./__resources__/HttpServer.py";
import Markdown from "./__resources__/test-page.md";
const Spacing = styled.div`
padding: 1em;
@@ -56,6 +57,11 @@ storiesOf("SyntaxHighlighter", module)
<SyntaxHighlighter language="python" value={PyHttpServer} />
</Spacing>
))
.add("Markdown", () => (
<Spacing>
<SyntaxHighlighter language="markdown" value={Markdown} />
</Spacing>
))
.add("Without line numbers", () => (
<Spacing>
<SyntaxHighlighter language="java" value={JavaHttpServer} showLineNumbers={false} />