Skip to content

Commit a683e5b

Browse files
styfleQingWei-Li
authored andcommitted
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.
1 parent 6a3cbba commit a683e5b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/markdown.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Markdown configuration
22

3-
**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`:
3+
**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`:
44

55
```js
66
window.$docsify = {
@@ -15,7 +15,7 @@ window.$docsify = {
1515
}
1616
```
1717

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

2020
Even you can completely customize the parsing rules.
2121

lib/docsify.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ var marked = createCommonjsModule(function (module, exports) {
610610
/**
611611
* marked - a markdown parser
612612
* Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
613-
* https://github.com/chjj/marked
613+
* https://github.com/markedjs/marked
614614
*/
615615

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

30763076
/**
30773077
* Render anchor tag
3078-
* @link https://github.com/chjj/marked#overriding-renderer-methods
3078+
* @link https://github.com/markedjs/marked#overriding-renderer-methods
30793079
*/
30803080
origin.heading = renderer.heading = function (text, level) {
30813081
var nextToc = {level: level, title: text};

src/core/render/compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export class Compiler {
163163

164164
/**
165165
* Render anchor tag
166-
* @link https://github.com/chjj/marked#overriding-renderer-methods
166+
* @link https://github.com/markedjs/marked#overriding-renderer-methods
167167
*/
168168
origin.heading = renderer.heading = function (text, level) {
169169
const nextToc = {level, title: text}

0 commit comments

Comments
 (0)