-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #360 from primer/code_padding
Removing ::before ::after padding hack on markdown
- Loading branch information
Showing
2 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react' | ||
import { storiesOf } from '@storybook/react' | ||
|
||
storiesOf('Markdown', module) | ||
.add('code', () => ( | ||
<div className="markdown-body"> | ||
<p> | ||
This is inline <code>code block</code>. This <code>code block has a <br><br/> in it</code>. <code>When a code block has a long sentence in it, it should wrap the page to a new line</code>. Some people like to see the world burn and put <code>reallylongunbrokenstringsreallylongunbrokenstringsreallylongunbrokenstringsreallylongunbrokenstringsreallylongunbrokenstrings</code> in the code blocks. | ||
</p> | ||
</div> | ||
)) | ||
.add('pre', () => ( | ||
<div className="markdown-body"> | ||
<pre> | ||
<code>Really long pre blocks should scroll horizontally when the words are longer than the parent container</code> | ||
</pre> | ||
</div> | ||
)) |