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.
This commit is contained in:
Steven
2018-08-07 21:16:32 -05:00
committed by cinwell.li
parent 6a3cbba35b
commit a683e5bf2a
3 changed files with 6 additions and 6 deletions

View File

@@ -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.

View File

@@ -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 '<p>An error occurred:</p><pre>'
+ 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};

View File

@@ -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}