@waline/client 1.3.11 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/Waline.min.d.ts +26 -8
  2. package/dist/Waline.min.js +1 -1
  3. package/dist/Waline.min.js.map +1 -1
  4. package/dist/Waline.noStyle.d.ts +26 -8
  5. package/dist/Waline.noStyle.js +1 -1
  6. package/dist/Waline.noStyle.js.map +1 -1
  7. package/dist/index.html +2 -1
  8. package/package.json +6 -6
  9. package/dist/Waline.commonjs.min.js +0 -13676
  10. package/dist/Waline.commonjs.min.js.LICENSE.txt +0 -5
  11. package/dist/Waline.commonjs.min.js.map +0 -1
  12. package/dist/Waline.min.js.LICENSE.txt +0 -5
  13. package/dist/Waline.noStyle.js.LICENSE.txt +0 -5
  14. package/dist/markdown.commonjs.min.js +0 -2870
  15. package/dist/markdown.commonjs.min.js.map +0 -1
  16. package/dist/markdown.min.js +0 -2870
  17. package/dist/markdown.min.js.map +0 -1
  18. package/dist/markdown.noStyle.js +0 -2870
  19. package/dist/markdown.noStyle.js.map +0 -1
  20. package/test/dist/main.js +0 -0
  21. package/test/dist/main.js.LICENSE.txt +0 -355
  22. package/test/node_modules/.package-lock.json +0 -36
  23. package/test/node_modules/comment-regex/index.js +0 -13
  24. package/test/node_modules/comment-regex/license +0 -21
  25. package/test/node_modules/comment-regex/package.json +0 -41
  26. package/test/node_modules/comment-regex/readme.md +0 -52
  27. package/test/node_modules/hanabi/LICENSE +0 -21
  28. package/test/node_modules/hanabi/README.md +0 -43
  29. package/test/node_modules/hanabi/dist/hanabi.js +0 -68
  30. package/test/node_modules/hanabi/dist/hanabi.min.js +0 -2
  31. package/test/node_modules/hanabi/dist/hanabi.min.js.map +0 -1
  32. package/test/node_modules/hanabi/package.json +0 -57
  33. package/test/node_modules/marked/LICENSE.md +0 -44
  34. package/test/node_modules/marked/README.md +0 -74
  35. package/test/node_modules/marked/bin/marked +0 -215
  36. package/test/node_modules/marked/lib/marked.esm.js +0 -2637
  37. package/test/node_modules/marked/lib/marked.js +0 -2787
  38. package/test/node_modules/marked/man/marked.1 +0 -111
  39. package/test/node_modules/marked/man/marked.1.txt +0 -96
  40. package/test/node_modules/marked/marked.min.js +0 -6
  41. package/test/node_modules/marked/package.json +0 -88
  42. package/test/node_modules/marked/src/Lexer.js +0 -491
  43. package/test/node_modules/marked/src/Parser.js +0 -263
  44. package/test/node_modules/marked/src/Renderer.js +0 -166
  45. package/test/node_modules/marked/src/Slugger.js +0 -49
  46. package/test/node_modules/marked/src/TextRenderer.js +0 -42
  47. package/test/node_modules/marked/src/Tokenizer.js +0 -730
  48. package/test/node_modules/marked/src/defaults.js +0 -32
  49. package/test/node_modules/marked/src/helpers.js +0 -260
  50. package/test/node_modules/marked/src/marked.js +0 -270
  51. package/test/node_modules/marked/src/rules.js +0 -310
@@ -1,36 +0,0 @@
1
- {
2
- "lockfileVersion": 2,
3
- "requires": true,
4
- "packages": {
5
- "node_modules/comment-regex": {
6
- "version": "1.0.1",
7
- "resolved": "https://registry.npmjs.org/comment-regex/-/comment-regex-1.0.1.tgz",
8
- "integrity": "sha512-IWlN//Yfby92tOIje7J18HkNmWRR7JESA/BK8W7wqY/akITpU5B0JQWnbTjCfdChSrDNb0DrdA9jfAxiiBXyiQ==",
9
- "dev": true,
10
- "engines": {
11
- "node": ">=0.10.0"
12
- }
13
- },
14
- "node_modules/hanabi": {
15
- "version": "0.4.0",
16
- "resolved": "https://registry.npmjs.org/hanabi/-/hanabi-0.4.0.tgz",
17
- "integrity": "sha1-67slE1jBM32x6r2mhsQ/93fTDYI=",
18
- "dev": true,
19
- "dependencies": {
20
- "comment-regex": "^1.0.0"
21
- }
22
- },
23
- "node_modules/marked": {
24
- "version": "2.0.6",
25
- "resolved": "https://registry.npmjs.org/marked/-/marked-2.0.6.tgz",
26
- "integrity": "sha512-S2mYj0FzTQa0dLddssqwRVW4EOJOVJ355Xm2Vcbm+LU7GQRGWvwbO5K87OaPSOux2AwTSgtPPaXmc8sDPrhn2A==",
27
- "dev": true,
28
- "bin": {
29
- "marked": "bin/marked"
30
- },
31
- "engines": {
32
- "node": ">= 8.16.2"
33
- }
34
- }
35
- }
36
- }
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- var comment = module.exports = function () {
4
- return new RegExp('(?:' + comment.line().source + ')|(?:' + comment.block().source + ')', 'gm');
5
- };
6
-
7
- comment.line = function () {
8
- return /(?:^|\s)\/\/(.+?)$/gm;
9
- };
10
-
11
- comment.block = function () {
12
- return /\/\*([\S\s]*?)\*\//gm;
13
- };
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,41 +0,0 @@
1
- {
2
- "name": "comment-regex",
3
- "version": "1.0.1",
4
- "description": "Regular expression for matching JavaScript comments",
5
- "license": "MIT",
6
- "repository": "sindresorhus/comment-regex",
7
- "author": {
8
- "name": "Sindre Sorhus",
9
- "email": "sindresorhus@gmail.com",
10
- "url": "http://sindresorhus.com"
11
- },
12
- "engines": {
13
- "node": ">=0.10.0"
14
- },
15
- "scripts": {
16
- "test": "ava"
17
- },
18
- "files": [
19
- "index.js"
20
- ],
21
- "keywords": [
22
- "text",
23
- "string",
24
- "regex",
25
- "regexp",
26
- "re",
27
- "match",
28
- "test",
29
- "find",
30
- "pattern",
31
- "comment",
32
- "comments",
33
- "js",
34
- "javascript",
35
- "line",
36
- "block"
37
- ],
38
- "devDependencies": {
39
- "ava": "*"
40
- }
41
- }
@@ -1,52 +0,0 @@
1
- # comment-regex [![Build Status](https://travis-ci.org/sindresorhus/comment-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/comment-regex)
2
-
3
- > Regular expression for matching JavaScript comments
4
-
5
- *This is pretty fragile and created for perf reasons where using a real parser would be overkill.*
6
-
7
-
8
- ## Install
9
-
10
- ```sh
11
- $ npm install --save comment-regex
12
- ```
13
-
14
-
15
- ## Usage
16
-
17
- ```js
18
- var commentRegex = require('comment-regex');
19
-
20
- // contains a comment
21
- commentRegex().test('/* unicorn */\nvar foo = true;');
22
- //=> true
23
-
24
- // get the contents of a comment
25
- commentRegex().exec('/* unicorn */\nvar foo = true;')[2].trim();
26
-
27
- // get all the comments
28
- '/* unicorn */\nvar foo = true;\nvar unicorn = "rainbows"; // rainbow'.match(commentRegex());
29
- //=> ['/* unicorn */', ' // rainbow']
30
- ```
31
-
32
-
33
- ## API
34
-
35
- The contents of the comment is in the first submatch.
36
-
37
- ### commentRegex()
38
-
39
- Returns a regex for matching line and block comments.
40
-
41
- ### commentRegex.line()
42
-
43
- Returns a regex for matching line comments.
44
-
45
- ### commentRegex.block()
46
-
47
- Returns a regex for matching block comments.
48
-
49
-
50
- ## License
51
-
52
- MIT © [Sindre Sorhus](http://sindresorhus.com)
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) egoist <0x142857@gmail.com> (https://egoistian.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,43 +0,0 @@
1
- # hanabi
2
-
3
- [![NPM version](https://img.shields.io/npm/v/hanabi.svg?style=flat)](https://npmjs.com/package/hanabi) [![NPM downloads](https://img.shields.io/npm/dm/hanabi.svg?style=flat)](https://npmjs.com/package/hanabi) [![Build Status](https://img.shields.io/circleci/project/egoist/hanabi/master.svg?style=flat)](https://circleci.com/gh/egoist/hanabi) [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/egoist/donate)
4
-
5
- How does it look like? Hmmm:
6
-
7
- <img width="530" alt="2017-02-23 6 07 22" src="https://cloud.githubusercontent.com/assets/8784712/23254411/f8768838-f9f2-11e6-87fe-76055c0b7d1c.png">
8
-
9
-
10
-
11
- ## Install
12
-
13
- ```bash
14
- yarn add hanabi
15
- ```
16
-
17
- CDN: https://unpkg.com/hanabi/dist/
18
-
19
- ## Usage
20
-
21
- ```js
22
- const hanabi = require('hanabi')
23
-
24
- hanabi(code)
25
- ```
26
-
27
- Demo: https://egoistian.com/hanabi/
28
-
29
- ## Contributing
30
-
31
- 1. Fork it!
32
- 2. Create your feature branch: `git checkout -b my-new-feature`
33
- 3. Commit your changes: `git commit -am 'Add some feature'`
34
- 4. Push to the branch: `git push origin my-new-feature`
35
- 5. Submit a pull request :D
36
-
37
-
38
- ## Author
39
-
40
- **hanabi** © [egoist](https://github.com/egoist), Released under the [MIT](./LICENSE) License.<br>
41
- Authored and maintained by egoist with help from contributors ([list](https://github.com/egoist/hanabi/contributors)).
42
-
43
- > [egoistian.com](https://egoistian.com) · GitHub [@egoist](https://github.com/egoist) · Twitter [@rem_rin_rin](https://twitter.com/rem_rin_rin)
@@ -1,68 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
- typeof define === 'function' && define.amd ? define(factory) :
4
- (global.hanabi = factory());
5
- }(this, (function () { 'use strict';
6
-
7
- function createCommonjsModule(fn, module) {
8
- return module = { exports: {} }, fn(module, module.exports), module.exports;
9
- }
10
-
11
- var index$1 = createCommonjsModule(function (module) {
12
- 'use strict';
13
-
14
- var comment = module.exports = function () {
15
- return new RegExp('(?:' + comment.line().source + ')|(?:' + comment.block().source + ')', 'gm');
16
- };
17
-
18
- comment.line = function () {
19
- return /(?:^|\s)\/\/(.+?)$/gm;
20
- };
21
-
22
- comment.block = function () {
23
- return /\/\*([\S\s]*?)\*\//gm;
24
- };
25
- });
26
-
27
- var defaultColors = ['23AC69', '91C132', 'F19726', 'E8552D', '1AAB8E', 'E1147F', '2980C1', '1BA1E6', '9FA0A0', 'F19726', 'E30B20', 'E30B20', 'A3338B'];
28
-
29
- var index = function (input, ref) {
30
- if ( ref === void 0 ) ref = {};
31
- var colors = ref.colors; if ( colors === void 0 ) colors = defaultColors;
32
-
33
- var index = 0;
34
- var cache = {};
35
- var wordRe = /[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/;
36
- var leftAngleRe = /</;
37
-
38
- var re = new RegExp(("(" + (wordRe.source) + "|" + (leftAngleRe.source) + ")|(" + (index$1().source) + ")"), 'gmi');
39
- return input
40
- .replace(re, function (m, word, cm) {
41
- if (cm) {
42
- return toComment(cm)
43
- }
44
-
45
- if (word === '<') {
46
- return '&lt;'
47
- }
48
- var color;
49
- if (cache[word]) {
50
- color = cache[word];
51
- } else {
52
- color = colors[index];
53
- cache[word] = color;
54
- }
55
-
56
- var out = "<span style=\"color: #" + color + "\">" + word + "</span>";
57
- index = ++index % colors.length;
58
- return out
59
- })
60
- };
61
-
62
- function toComment(cm) {
63
- return ("<span style=\"color: slategray\">" + cm + "</span>")
64
- }
65
-
66
- return index;
67
-
68
- })));
@@ -1,2 +0,0 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.hanabi=n()}(this,function(){"use strict";function e(e,n){return n={exports:{}},e(n,n.exports),n.exports}function n(e){return'<span style="color: slategray">'+e+"</span>"}var r=e(function(e){var n=e.exports=function(){return new RegExp("(?:"+n.line().source+")|(?:"+n.block().source+")","gm")};n.line=function(){return/(?:^|\s)\/\/(.+?)$/gm},n.block=function(){return/\/\*([\S\s]*?)\*\//gm}}),u=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],t=function(e,t){void 0===t&&(t={});var o=t.colors;void 0===o&&(o=u);var f=0,c={},i=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,s=/</,a=new RegExp("("+i.source+"|"+s.source+")|("+r().source+")","gmi");return e.replace(a,function(e,r,u){if(u)return n(u);if("<"===r)return"&lt;";var t;c[r]?t=c[r]:(t=o[f],c[r]=t);var i='<span style="color: #'+t+'">'+r+"</span>";return f=++f%o.length,i})};return t});
2
- //# sourceMappingURL=hanabi.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":null,"sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,57 +0,0 @@
1
- {
2
- "name": "hanabi",
3
- "version": "0.4.0",
4
- "description": "Highlight any code, in a colorful way.",
5
- "repository": {
6
- "url": "egoist/hanabi",
7
- "type": "git"
8
- },
9
- "main": "dist/hanabi.js",
10
- "files": [
11
- "dist"
12
- ],
13
- "scripts": {
14
- "test": "jest && npm run lint && npm run build",
15
- "lint": "xo",
16
- "build": "bili --format umd --module-name hanabi --compress",
17
- "example": "vbuild -dc",
18
- "build:example": "vbuild -c",
19
- "deploy": "npm run build:example && gh-pages -d dist-example"
20
- },
21
- "author": "egoist <0x142857@gmail.com>",
22
- "license": "MIT",
23
- "jest": {
24
- "testEnvironment": "node"
25
- },
26
- "babel": {
27
- "env": {
28
- "test": {
29
- "presets": [
30
- "es2015"
31
- ]
32
- }
33
- }
34
- },
35
- "devDependencies": {
36
- "babel-preset-es2015": "^6.22.0",
37
- "bili": "^0.14.0",
38
- "gh-pages": "^0.12.0",
39
- "jest-cli": "^19.0.2",
40
- "raw-loader": "^0.5.1",
41
- "vbuild": "^6.20.1",
42
- "xo": "^0.17.1"
43
- },
44
- "xo": {
45
- "space": 2,
46
- "semicolon": false,
47
- "envs": [
48
- "jest"
49
- ],
50
- "ignores": [
51
- "example/**"
52
- ]
53
- },
54
- "dependencies": {
55
- "comment-regex": "^1.0.0"
56
- }
57
- }
@@ -1,44 +0,0 @@
1
- # License information
2
-
3
- ## Contribution License Agreement
4
-
5
- If you contribute code to this project, you are implicitly allowing your code
6
- to be distributed under the MIT license. You are also implicitly verifying that
7
- all code is your original work. `</legalese>`
8
-
9
- ## Marked
10
-
11
- Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/)
12
- Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/)
13
-
14
- Permission is hereby granted, free of charge, to any person obtaining a copy
15
- of this software and associated documentation files (the "Software"), to deal
16
- in the Software without restriction, including without limitation the rights
17
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
- copies of the Software, and to permit persons to whom the Software is
19
- furnished to do so, subject to the following conditions:
20
-
21
- The above copyright notice and this permission notice shall be included in
22
- all copies or substantial portions of the Software.
23
-
24
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30
- THE SOFTWARE.
31
-
32
- ## Markdown
33
-
34
- Copyright © 2004, John Gruber
35
- http://daringfireball.net/
36
- All rights reserved.
37
-
38
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
39
-
40
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
41
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
42
- * Neither the name “Markdown” nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
43
-
44
- This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.
@@ -1,74 +0,0 @@
1
- <a href="https://marked.js.org">
2
- <img width="60px" height="60px" src="https://marked.js.org/img/logo-black.svg" align="right" />
3
- </a>
4
-
5
- # Marked
6
-
7
- [![npm](https://badgen.net/npm/v/marked)](https://www.npmjs.com/package/marked)
8
- [![gzip size](https://badgen.net/badgesize/gzip/https://cdn.jsdelivr.net/npm/marked/marked.min.js)](https://cdn.jsdelivr.net/npm/marked/marked.min.js)
9
- [![install size](https://badgen.net/packagephobia/install/marked)](https://packagephobia.now.sh/result?p=marked)
10
- [![downloads](https://badgen.net/npm/dt/marked)](https://www.npmjs.com/package/marked)
11
- [![github actions](https://github.com/markedjs/marked/workflows/Tests/badge.svg)](https://github.com/markedjs/marked/actions)
12
- [![snyk](https://snyk.io/test/npm/marked/badge.svg)](https://snyk.io/test/npm/marked)
13
-
14
- - ⚡ built for speed
15
- - ⬇️ low-level compiler for parsing markdown without caching or blocking for long periods of time
16
- - ⚖️ light-weight while implementing all markdown features from the supported flavors & specifications
17
- - 🌐 works in a browser, on a server, or from a command line interface (CLI)
18
-
19
- ## Demo
20
-
21
- Checkout the [demo page](https://marked.js.org/demo/) to see marked in action ⛹️
22
-
23
- ## Docs
24
-
25
- Our [documentation pages](https://marked.js.org) are also rendered using marked 💯
26
-
27
- Also read about:
28
-
29
- * [Options](https://marked.js.org/#/USING_ADVANCED.md)
30
- * [Extensibility](https://marked.js.org/#/USING_PRO.md)
31
-
32
- ## Installation
33
-
34
- **CLI:** `npm install -g marked`
35
-
36
- **In-browser:** `npm install marked`
37
-
38
- ## Usage
39
-
40
- ### Warning: 🚨 Marked does not [sanitize](https://marked.js.org/#/USING_ADVANCED.md#options) the output HTML. Please use a sanitize library, like [DOMPurify](https://github.com/cure53/DOMPurify) (recommended), [sanitize-html](https://github.com/apostrophecms/sanitize-html) or [insane](https://github.com/bevacqua/insane) on the output HTML! 🚨
41
-
42
- **CLI**
43
-
44
- ``` bash
45
- $ marked -o hello.html
46
- hello world
47
- ^D
48
- $ cat hello.html
49
- <p>hello world</p>
50
- ```
51
-
52
- **Browser**
53
-
54
- ```html
55
- <!doctype html>
56
- <html>
57
- <head>
58
- <meta charset="utf-8"/>
59
- <title>Marked in the browser</title>
60
- </head>
61
- <body>
62
- <div id="content"></div>
63
- <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
64
- <script>
65
- document.getElementById('content').innerHTML =
66
- marked('# Marked in the browser\n\nRendered by **marked**.');
67
- </script>
68
- </body>
69
- </html>
70
- ```
71
-
72
- ## License
73
-
74
- Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)