Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/markdown.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Markdown configuration

**docsify** uses [marked](https://github.com/chjj/marked) as its Markdown parser. You can customize how it renders your Markdown content to HTML by customizing `renderer`:
**docsify** uses [marked](https://github.com/markedjs/marked) as its Markdown parser. You can customize how it renders your Markdown content to HTML by customizing `renderer`:

```js
window.$docsify = {
Expand All @@ -15,7 +15,7 @@ window.$docsify = {
}
```

?> Configuration Options Reference [marked documentation](https://github.com/chjj/marked#options-1)
?> Configuration Options Reference [marked documentation](https://marked.js.org/#/USING_ADVANCED.md)

Even you can completely customize the parsing rules.

Expand Down
6 changes: 3 additions & 3 deletions lib/docsify.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ var marked = createCommonjsModule(function (module, exports) {
/**
* marked - a markdown parser
* Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
* https://github.com/chjj/marked
* https://github.com/markedjs/marked
*/

(function() {
Expand Down Expand Up @@ -1866,7 +1866,7 @@ function marked(src, opt, callback) {
if (opt) { opt = merge({}, marked.defaults, opt); }
return Parser.parse(Lexer.lex(src, opt), opt);
} catch (e) {
e.message += '\nPlease report this to https://github.com/chjj/marked.';
e.message += '\nPlease report this to https://github.com/markedjs/marked.';
if ((opt || marked.defaults).silent) {
return '<p>An error occurred:</p><pre>'
+ escape(e.message + '', true)
Expand Down Expand Up @@ -3075,7 +3075,7 @@ Compiler.prototype._initRenderer = function _initRenderer () {

/**
* Render anchor tag
* @link https://github.com/chjj/marked#overriding-renderer-methods
* @link https://github.com/markedjs/marked#overriding-renderer-methods
*/
origin.heading = renderer.heading = function (text, level) {
var nextToc = {level: level, title: text};
Expand Down
2 changes: 1 addition & 1 deletion src/core/render/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export class Compiler {

/**
* Render anchor tag
* @link https://github.com/chjj/marked#overriding-renderer-methods
* @link https://github.com/markedjs/marked#overriding-renderer-methods
*/
origin.heading = renderer.heading = function (text, level) {
const nextToc = {level, title: text}
Expand Down