hooks-md.R: Only collapse matched back-ticks.

- Ensure the fence is alone on the line and lengths are equal before
  collapsing.

Signed-off-by: Thell Fowler <thell@tbfowler.name>