       Components.SourceComponent value: s, language: 'json'
 
   doc 'object',
-    'Prints an object as JSON'
+    'Displays an object as JSON'
     """
     `object` converts an object to a string using `JSON.stringify` if possible and `new String` otherwise.
     The result is displayed using syntax highlighting.

    ObjectComponent object: o

  doc 'dir',
    'Displays a JavaScript representation of the object'
    """
    `dir` displays a JavaScript object's properties.


    ObjectBrowserComponent {object}


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

  HtmlComponent = React.createClass
    displayName: 'HtmlComponent'
    render: -> React.DOM.div className: 'user-html', dangerouslySetInnerHTML: __html: @props.value

  component_fn 'text', 'Displays text', (ctx, string) ->
    React.DOM.p {}, string

  component_fn 'pre', 'Displays preformatted text', (ctx, string) ->
    React.DOM.pre null, string

  component_fn 'html', 'Displays rendered HTML', (ctx, string) ->
    HtmlComponent value: string


