smart quotes #20

Open
dherman opened this Issue Jul 20, 2012 · 4 comments

Projects

None yet

2 participants

@dherman
dherman commented Jul 20, 2012

It'd be so sweet to automatically infer smart quotes and turn them into curly quotes in the generated HTML.

Dave

@logicalparadox
Owner

Can you provide an example? Are you talking about quotes in the markdown or quotes in the jade?

@dherman
dherman commented Jul 20, 2012

More importantly in the markdown. For example, Octopress supports this (which I'm guessing means it's implemented by Jekyll -- not sure, haven't looked under the hood).

An example would be, the .md file:

Alice said, "Hi Bob."

rendering as:

Alice said, “Hi Bob.”

Dave

@logicalparadox
Owner

Codex uses marked for markdown parsing. I went straight to using the lexer/parse as I don't recall it having "options" when I first started. I'll refactor my approach and hopefully that will resolve this.

@logicalparadox
Owner

Refactoring this approach didn't seem to help. If you can find a way to configure marked to do this, then I would be more than happy to implement as an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment