 # //g -> inline image
 # //g -> reference image
 markdownSyntaxDescriptor =
-  "title":         [/^\s{0,3}\#{1,6}.*$/m, /^.+?\n[=-]{2,}\s*$/m]
+#  "title":         [/^\s{0,3}\#{1,6}.*$/m, /^.+?\n[=-]{2,}\s*$/m]
+  "title":         /^\s{0,3}\#{1,6}.*$/m
   "block":         /^\s{0,3}>\s+.*$/m
-  "emphasis":      /([\*_]).+?\1/m
-  "strong":        /([\*_]{2}).+?\1/m
-  "strikethrough": /~~.+?~~/m
   "orderedlist":   /^\s*[0-9]+\. .+$/m
   "unorderedlist": /^\s*[*+-] .+$/m
-  "inlinecode":    /`.+?`/m
-  "codeblock":     [/```.+?```/m, /^(?: {4}|\t).+$/m]
+  "strong":        /([\*_]{2})[^\*_]+?\1/m
+  "emphasis":      /([\*_])[^\*_]+?\1(?![\*_])/m
+  "strikethrough": /~~.+?~~/m
+  "inlinecode":    /`[^`\n]+?`/
+  "codeblock":     /```[.\n]+?```/m
+#  "codeblock":     [/```.+?```/m, /^(?: {4}|\t).+$/m]
   "rule":          /^[-\*]{3,}/m
   # "table":
   # "inlinehtml"

    area.val(div.data("content"))

  div.on "keyup paste", ->
    div.data("content", formattedTextToDataText(div.html())).trigger("send-content")


  # Initialize content

    return openSpan + content + closeSpan

  node.process = ->
    debugger
    if @descriptor.length == 0
      @terminate = true
    else
      rule = @descriptor.pop()
      # This is not a loop, only one key value pair for a rule
      for klass, regexp of rule
        currentIndex = 0
        remainder = @content
        while matchData = regexp.exec(remainder)
          hasMatchData = true
          unmatched = remainder.substr(currentIndex, matchData.index)
          matched = matchData[0]
          currentIndex = matched.length + matchData.index
          remainder = remainder.substr(currentIndex)
          currentIndex = 0
          if unmatched.length > 0
            unmatchedNewNode = createNode(unmatched, @htmlfier, @descriptor.slice(0), null)
            @subnodes.push(unmatchedNewNode)
          matchedNewNode = createNode(matched, @htmlfier, @descriptor.slice(0), klass)
          @subnodes.push(matchedNewNode)
        newNode = createNode(remainder, @htmlfier, @descriptor.slice(0), null)
        @subnodes.push(newNode)
    node.processed = true

  return node
