diff --git a/docs/markdown.md b/docs/markdown.md index 55eef98..d03d5ec 100644 --- a/docs/markdown.md +++ b/docs/markdown.md @@ -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 = { @@ -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. diff --git a/lib/docsify.js b/lib/docsify.js index 24479f4..98f3a50 100644 --- a/lib/docsify.js +++ b/lib/docsify.js @@ -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() { @@ -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 '
An error occurred:
'
+ escape(e.message + '', true)
@@ -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};
diff --git a/src/core/render/compiler.js b/src/core/render/compiler.js
index 7160130..35a5bb5 100644
--- a/src/core/render/compiler.js
+++ b/src/core/render/compiler.js
@@ -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}