 
   component_fn 'html', 'Adds some HTML', (ctx, string) ->
     HtmlComponent value: string
+
 
   ErrorComponent = React.createClass
     displayName: 'ErrorComponent'

        # TODO handle exceptions better
      React.DOM.pre {className: 'error'}, message

  component_fn 'error', 'Shows a preformatted error message', (ctx, message) ->
    ErrorComponent {message}

  component_fn 'example', 'Makes a clickable code example', (ctx, value, opts) ->
    ExampleComponent value: value, run: opts?.run ? true

  component_fn 'dir', (ctx, object) ->
    ObjectBrowserComponent {object}


  component_fn 'md', 'Renders Markdown', (ctx, string, opts) ->
    Markdown.MarkdownComponent value: string, opts: opts

