   constructor: (@root) ->
     super(@root, 'strike', 'S')
 
+  matchContainer: (container) ->
+    return super(container) or container.style?.textDecoration == 'line-through'
+
   preformat: (value) ->
     @root.ownerDocument.execCommand('strikeThrough', false, value)
 

class ScribeUnderlineFormat extends ScribeTagFormat
  constructor: (@root) ->
    super(@root, 'underline', 'U')


class ScribeLinkFormat extends ScribeTagFormat

  constructor: (@root) ->
    super(@root, 'bold', 'B')

  matchContainer: (container) ->
    return super(container) or container.style?.fontWeight == 'bold'


class ScribeItalicFormat extends ScribeTagFormat
  constructor: (@root) ->
