|
895 | 895 | * MarkdownIt provides named presets as a convenience to quickly |
896 | 896 | * enable/disable active syntax rules and options for common use cases. |
897 | 897 | * |
898 | | - * - ["commonmark"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/commonmark.js) - |
| 898 | + * - ["commonmark"](https://github.com/markdown-it/markdown-it/blob/main/lib/presets/commonmark.js) - |
899 | 899 | * configures parser to strict [CommonMark](http://commonmark.org/) mode. |
900 | | - * - [default](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/default.js) - |
| 900 | + * - [default](https://github.com/markdown-it/markdown-it/blob/main/lib/presets/default.js) - |
901 | 901 | * similar to GFM, used when no preset name given. Enables all available rules, |
902 | 902 | * but still without html, typographer & autolinker. |
903 | | - * - ["zero"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/zero.js) - |
| 903 | + * - ["zero"](https://github.com/markdown-it/markdown-it/blob/main/lib/presets/zero.js) - |
904 | 904 | * all rules disabled. Useful to quickly setup your config via `.enable()`. |
905 | 905 | * For example, when you need only `bold` and `italic` markup and nothing else. |
906 | 906 | * |
|
917 | 917 | * Can be useful for external highlighters. |
918 | 918 | * - __linkify__ - `false`. Set `true` to autoconvert URL-like text to links. |
919 | 919 | * - __typographer__ - `false`. Set `true` to enable [some language-neutral |
920 | | - * replacement](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/replacements.js) + |
| 920 | + * replacement](https://github.com/markdown-it/markdown-it/blob/main/lib/rules_core/replacements.js) + |
921 | 921 | * quotes beautification (smartquotes). |
922 | 922 | * - __quotes__ - `“”‘’`, String or Array. Double + single quotes replacement |
923 | 923 | * pairs, when typographer enabled and smartquotes on. For example, you can |
|
1043 | 1043 | * md.renderer.rules['my_token'] = myToken |
1044 | 1044 | * ``` |
1045 | 1045 | * |
1046 | | - * See [[Renderer]] docs and [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.js). |
| 1046 | + * See [[Renderer]] docs and [source code](https://github.com/markdown-it/markdown-it/blob/main/lib/renderer.js). |
1047 | 1047 | **/ |
1048 | 1048 | this.renderer = new Renderer(); |
1049 | 1049 |
|
1050 | 1050 | /** |
1051 | 1051 | * MarkdownIt#linkify -> LinkifyIt |
1052 | 1052 | * |
1053 | 1053 | * [linkify-it](https://github.com/markdown-it/linkify-it) instance. |
1054 | | - * Used by [linkify](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/linkify.js) |
| 1054 | + * Used by [linkify](https://github.com/markdown-it/markdown-it/blob/main/lib/rules_core/linkify.js) |
1055 | 1055 | * rule. |
1056 | 1056 | **/ |
1057 | 1057 | this.linkify = new LinkifyIt(); |
|
1094 | 1094 | * MarkdownIt#utils -> utils |
1095 | 1095 | * |
1096 | 1096 | * Assorted utility functions, useful to write plugins. See details |
1097 | | - * [here](https://github.com/markdown-it/markdown-it/blob/master/lib/common/utils.js). |
| 1097 | + * [here](https://github.com/markdown-it/markdown-it/blob/main/lib/common/utils.js). |
1098 | 1098 | **/ |
1099 | 1099 | this.utils = utils; |
1100 | 1100 |
|
1101 | 1101 | /** |
1102 | 1102 | * MarkdownIt#helpers -> helpers |
1103 | 1103 | * |
1104 | 1104 | * Link components parser functions, useful to write plugins. See details |
1105 | | - * [here](https://github.com/markdown-it/markdown-it/blob/master/lib/helpers). |
| 1105 | + * [here](https://github.com/markdown-it/markdown-it/blob/main/lib/helpers). |
1106 | 1106 | **/ |
1107 | 1107 | this.helpers = utils.assign({}, helpers); |
1108 | 1108 |
|
|
1143 | 1143 | * |
1144 | 1144 | * Batch load of all options and compenent settings. This is internal method, |
1145 | 1145 | * and you probably will not need it. But if you with - see available presets |
1146 | | - * and data structure [here](https://github.com/markdown-it/markdown-it/tree/master/lib/presets) |
| 1146 | + * and data structure [here](https://github.com/markdown-it/markdown-it/tree/main/lib/presets) |
1147 | 1147 | * |
1148 | 1148 | * We strongly recommend to use presets instead of direct config loads. That |
1149 | 1149 | * will give better compatibility with next versions. |
|
2187 | 2187 | * } |
2188 | 2188 | * ``` |
2189 | 2189 | * |
2190 | | - * See [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.js) |
| 2190 | + * See [source code](https://github.com/markdown-it/markdown-it/blob/main/lib/renderer.js) |
2191 | 2191 | * for more details and examples. |
2192 | 2192 | **/ |
2193 | 2193 | this.rules = assign({}, default_rules); |
|
0 commit comments