   constructor: (@root) ->
     super(@root, 'bold', 'B')
 
+  matchContainer: (container) ->
+    return super(container) or container.style?.fontWeight == 'bold'
+
 
 class ScribeItalicFormat extends ScribeTagFormat
   constructor: (@root) ->

  constructor: (@root) ->
    super(@root, 'strike', 'S')

  preformat: (value) ->
    @root.ownerDocument.execCommand('strikeThrough', false, value)


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

  matchContainer: (container) ->
    return super(container) or container.style?.textDecoration == 'underline'


class ScribeLinkFormat extends ScribeTagFormat
