From a683e5bf2a136933e0c8971374515967cb294298 Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 7 Aug 2018 21:16:32 -0500 Subject: [PATCH] Update url to markedjs (#601) Please makes sure these boxes are checked before submitting your PR, thank you! * [x] Make sure you are merging your commits to `master` branch. * [x] Add some descriptions and refer relative issues for you PR. * [x] DO NOT include files inside `lib` directory. Related: #410 This updates urls to marked github repo and documentation. --- docs/markdown.md | 4 ++-- lib/docsify.js | 6 +++--- src/core/render/compiler.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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}