Skip to content

Commit

Permalink
Remove characters that were breaking HTML IDs in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Jacobs committed Sep 16, 2016
1 parent 82209c1 commit a78c382
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png">
</a>

<div id='--root'></div>
<div id='root'></div>

<script type='text/plain' id='--sample-content'>
<script type='text/plain' id='sample-content'>
# This is Markdown

[Markdown](http://daringfireball.net/projects/markdown/) lets you
Expand Down
2 changes: 1 addition & 1 deletion docs/js/bundle.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions site.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ReactDOM from 'react-dom';
import compiler from './index';

class TryItLive extends React.PureComponent {
state = {markdown: document.getElementById('--sample-content').textContent.trim()}
state = {markdown: document.getElementById('sample-content').textContent.trim()}

updateState = (e) => this.setState({markdown: e.target.value})

Expand Down Expand Up @@ -35,4 +35,4 @@ class TryItLive extends React.PureComponent {
}
}

ReactDOM.render(<TryItLive />, document.getElementById('--root'));
ReactDOM.render(<TryItLive />, document.getElementById('root'));
2 changes: 1 addition & 1 deletion site.styl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ color-body = #444

html,
body,
#--root,
#root,
main {
margin: 0;
overflow: hidden;
Expand Down

0 comments on commit a78c382

Please sign in to comment.