Browse Source

docs: replace .js with .mjs in links to files in ndoc comments (#989)

pull/991/head
Orca 12 months ago
committed by GitHub
parent
commit
d07d585b6b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      lib/index.mjs
  2. 2
      lib/renderer.mjs

12
lib/index.mjs

@ -124,12 +124,12 @@ function normalizeLinkText (url) {
* MarkdownIt provides named presets as a convenience to quickly * MarkdownIt provides named presets as a convenience to quickly
* enable/disable active syntax rules and options for common use cases. * enable/disable active syntax rules and options for common use cases.
* *
* - ["commonmark"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/commonmark.js) - * - ["commonmark"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/commonmark.mjs) -
* configures parser to strict [CommonMark](http://commonmark.org/) mode. * configures parser to strict [CommonMark](http://commonmark.org/) mode.
* - [default](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/default.js) - * - [default](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/default.mjs) -
* similar to GFM, used when no preset name given. Enables all available rules, * similar to GFM, used when no preset name given. Enables all available rules,
* but still without html, typographer & autolinker. * but still without html, typographer & autolinker.
* - ["zero"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/zero.js) - * - ["zero"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/zero.mjs) -
* all rules disabled. Useful to quickly setup your config via `.enable()`. * all rules disabled. Useful to quickly setup your config via `.enable()`.
* For example, when you need only `bold` and `italic` markup and nothing else. * For example, when you need only `bold` and `italic` markup and nothing else.
* *
@ -146,7 +146,7 @@ function normalizeLinkText (url) {
* Can be useful for external highlighters. * Can be useful for external highlighters.
* - __linkify__ - `false`. Set `true` to autoconvert URL-like text to links. * - __linkify__ - `false`. Set `true` to autoconvert URL-like text to links.
* - __typographer__ - `false`. Set `true` to enable [some language-neutral * - __typographer__ - `false`. Set `true` to enable [some language-neutral
* replacement](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/replacements.js) + * replacement](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/replacements.mjs) +
* quotes beautification (smartquotes). * quotes beautification (smartquotes).
* - __quotes__ - `“”‘’`, String or Array. Double + single quotes replacement * - __quotes__ - `“”‘’`, String or Array. Double + single quotes replacement
* pairs, when typographer enabled and smartquotes on. For example, you can * pairs, when typographer enabled and smartquotes on. For example, you can
@ -272,7 +272,7 @@ function MarkdownIt (presetName, options) {
* md.renderer.rules['my_token'] = myToken * md.renderer.rules['my_token'] = myToken
* ``` * ```
* *
* See [[Renderer]] docs and [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.js). * See [[Renderer]] docs and [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.mjs).
**/ **/
this.renderer = new Renderer() this.renderer = new Renderer()
@ -280,7 +280,7 @@ function MarkdownIt (presetName, options) {
* MarkdownIt#linkify -> LinkifyIt * MarkdownIt#linkify -> LinkifyIt
* *
* [linkify-it](https://github.com/markdown-it/linkify-it) instance. * [linkify-it](https://github.com/markdown-it/linkify-it) instance.
* Used by [linkify](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/linkify.js) * Used by [linkify](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/linkify.mjs)
* rule. * rule.
**/ **/
this.linkify = new LinkifyIt() this.linkify = new LinkifyIt()

2
lib/renderer.mjs

@ -137,7 +137,7 @@ function Renderer () {
* } * }
* ``` * ```
* *
* See [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.js) * See [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.mjs)
* for more details and examples. * for more details and examples.
**/ **/
this.rules = assign({}, default_rules) this.rules = assign({}, default_rules)

Loading…
Cancel
Save