Skip to content

Commit

Permalink
Merge pull request markedjs#3 from gibson042/document-xhtml
Browse files Browse the repository at this point in the history
Document the xhtml option
  • Loading branch information
joshbruce authored Oct 19, 2017
2 parents 77df081 + 82de6ba commit a34daa6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ marked.setOptions({
pedantic: false,
sanitize: false,
smartLists: true,
smartypants: false
smartypants: false,
xhtml: false
});

console.log(marked('I am using __markdown__.'));
Expand Down Expand Up @@ -271,6 +272,13 @@ Default: `false`

Use "smart" typograhic punctuation for things like quotes and dashes.

### xhtml

Type: `boolean`
Default: `false`

Self-close the tags for void elements (<br/>, <img/>, etc.) with a "/" as required by XHTML.

## Access to lexer and parser

You also have direct access to the lexer and parser if you so desire.
Expand Down

0 comments on commit a34daa6

Please sign in to comment.