       type: 'html'
       regex: '\n</code>'
       replace: '</code>'
-    ,
+    , # lists
       type: 'html'
       regex: '\n<(/)?(li|ul)>'
       replace: '<$1$2>'

    ,
      type: 'html'
      regex: '</li>'
      replace: ''
    ]

  render = new Showdown.converter extensions: [mv]
  mvcode = new Showdown.converter extensions: [bbcode]

  generated = document.getElementById 'code'


    ]

  bbcode = (converter) ->
    [ # [bar]
      type: 'html'
      regex: '<h1.*>(.*)</h1>'
      replace: '[bar]$1[/bar]\n'
    , # bar pequenya
      type: 'html'
      regex: '<h2.*>(.*)</h2>'
      replace: (match, content, num, text) ->
        "[img]http://tools.mediavida.com/sub.php?t=#{encodeURIComponent content}[/img]"
    , # [img]
      type: 'html'
      regex: '<img.*src="(.*)" alt.*>'
      replace: (match, content, num, text) ->
        "[img]#{content}[/img]"
    , # [code]
      type: 'html'
      regex: '\n?<(/)?code>'
      replace: '[$1code]'
    , # [b]
      type: 'html'
      regex: '<(/)?strong>'
      replace: '[$1b]'
    , # [i]
      type: 'html'
      regex: '<(/)?em>'
      replace: '[$1i]'
