Use space pen to generate error html

This commit is contained in:
Kevin Sawicki
2012-12-31 15:03:04 -08:00
parent 488ec54a78
commit f5c59d33c3

View File

@@ -42,11 +42,14 @@ class MarkdownPreview extends ScrollView
@rootView.getActiveEditor()?.getText()
getErrorHtml: (error) ->
'<h1>Previewing Markdown Failed</h1>
<h2>Possible Reasons</h2>
<ul>
<li>You aren\'t online or are unable to reach <a href="https://github.com">github.com</a></li>
</ul>'
$$$ ->
@h2 'Previewing Markdown Failed'
@h3 'Possible Reasons'
@ul =>
@li =>
@span 'You aren\'t online or are unable to reach '
@a 'github.com', href: 'https://github.com'
@span '.'
getLoadingHtml: ->
$$$ ->