Skip to content

Commit

Permalink
Merge pull request markedjs#164 from ianstormtaylor/patch-2
Browse files Browse the repository at this point in the history
added smartypants to readme
  • Loading branch information
chjj committed Jun 1, 2013
2 parents df8640c + cd393e6 commit 31c50a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ marked has a few different switches which change behavior.
- __smartLists__: Use smarter list behavior than the original markdown.
Disabled by default. May eventually be default with the old behavior
moved into `pedantic`.
- __smartypants__: Use "smart" typograhic punctuation for things like quotes
and dashes.
- __langPrefix__: Set the prefix for code block classes. Defaults to `lang-`.

## Usage
Expand All @@ -101,6 +103,7 @@ marked.setOptions({
pedantic: false,
sanitize: true,
smartLists: true,
smartypants: false,
langPrefix: 'language-',
highlight: function(code, lang) {
if (lang === 'js') {
Expand Down

0 comments on commit 31c50a9

Please sign in to comment.