Skip to content

Commit

Permalink
Remove and default to commonmark option
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 4, 2021
1 parent 009f251 commit 12ed87f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
* @property {string} [manual]
* Manual of page.
* Manuals are centered in the header line of the displayed page.
* @property {boolean} [commonmark=false]
* Parsing mode.
* The default behavior is to prefer the last duplicate definition.
* Set to `true` to prefer the first when duplicate definitions are found.
*/

import {createCompiler} from './lib/create-compiler.js'
Expand Down
3 changes: 1 addition & 2 deletions lib/create-compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ export function createCompiler(defaults) {
const context = {
file,
level: 0,
// @ts-expect-error: to do remove `commonmark` options.
definitions: definitions(tree, {commonmark: defaults.commonmark}),
definitions: definitions(tree),
headings,
all,
one,
Expand Down
6 changes: 0 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,6 @@ printing is active).
Manual of page (`string`, optional).
Manuals are centered in the header line of the displayed page.

###### `options.commonmark`

Parsing mode (`boolean`, default: `false`).
The default behavior is to prefer the last duplicate definition.
Set to `true` to prefer the first when duplicate definitions are found.

## Security

Use of `remark-man` does not involve [**rehype**][rehype] ([**hast**][hast]) or
Expand Down

0 comments on commit 12ed87f

Please sign in to comment.