Skip to content

Dash handling #6

@jamienk

Description

@jamienk

I think your dash-handling should be vastly simplified and better match markdown and smartypants (http://daringfireball.net/projects/smartypants/)

  • Two hyphens should turn to m-dash
    I know this should be n-dash, but m has become stylistically used by default, see smartypants config:
#  1  ->  "--" for em-dashes; no en-dash support  
#  2  ->  "---" for em-dashes; "--" for en-dashes 
  • No space before or after required (this is a style question and people can add spaces if they want, but your current way leaves the non-spacers in the lurch)
  • Quotes after dash should be correct, e.g.,:
He said--and I couldn't stop him--"No!" <--Opening quote should be correct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions