New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add /docs directory for GitHub Pages #1138
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.git* | ||
test/ | ||
docs | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,19 @@ | ||
<ul> | ||
<li><a href="#marked">About</a></li> | ||
<li><a href="#install">Installation</a></li> | ||
<li><a href="#usage">Usage</a></li> | ||
<li><a href="#specifications">Supported Markdown specifications</a></li> | ||
<li><a href="#security">Security</a></li> | ||
<li><a href="#contributing">Contributing</a></li> | ||
<li><a href="#authors">Authors</a></li> | ||
<li><a href="#license">License</a></li> | ||
</ul> | ||
|
||
<h2 id="marked">Marked</h2> | ||
# Marked | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I greatly simplified the main README and moved the more complex one to |
||
|
||
Marked is | ||
|
||
1. built for speed.<sup>*</sup> | ||
2. a low-level markdown compiler that allows frequent parsing of large chunks of markdown without caching or blocking for long periods of time.<sup>**</sup> | ||
3. light-weight while implementing all markdown features from the supported flavors & specifications.<sup>***</sup> | ||
1. built for speed. | ||
2. a low-level markdown compiler that allows frequent parsing of large chunks of markdown without caching or blocking for long periods of time. | ||
3. light-weight while implementing all markdown features from the supported flavors & specifications. | ||
4. available as a command line interface (CLI) and running in client- or server-side JavaScript projects. | ||
|
||
<p><small><sup>*</sup> Still working on metrics for comparative analysis and definition.</small><br> | ||
<small><sup>**</sup> As few dependencies as possible.</small><br> | ||
<small><sup>***</sup> Strict compliance could result in slower processing when running comparative benchmarking.</small></p> | ||
|
||
<h2 id="installation">Installation</h2> | ||
## Installation | ||
|
||
**CLI:** `npm install -g marked` | ||
|
||
**In-browser:** `npm install marked --save` | ||
|
||
<h2 id="usage">Usage</h2> | ||
## Usage | ||
|
||
**CLI** | ||
|
||
|
@@ -48,52 +33,21 @@ $ cat hello.html | |
<head> | ||
<meta charset="utf-8"/> | ||
<title>Marked in the browser</title> | ||
<script src="/path/to/marked.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> | ||
</head> | ||
<body> | ||
<div id="content"></div> | ||
<script> | ||
document.getElementById('content').innerHTML = | ||
marked('# Marked in browser\n\nRendered by **marked**.'); | ||
marked('# Marked in the browser\n\nRendered by **marked**.'); | ||
</script> | ||
</body> | ||
</html> | ||
``` | ||
|
||
|
||
Marked offers [advanced configurations](https://github.com/markedjs/marked/blob/master/USING_ADVANCED.md) and [extensibility](https://github.com/markedjs/marked/blob/master/USING_PRO.md) as well. | ||
|
||
<h2 id="specifications">Supported Markdown specifications</h2> | ||
|
||
We actively support the features of the following [Markdown flavors](https://github.com/commonmark/CommonMark/wiki/Markdown-Flavors). | ||
|
||
|Flavor |Version | | ||
|:----------------------------------------------------------|:----------| | ||
|The original markdown.pl |-- | | ||
|[CommonMark](http://spec.commonmark.org/0.28/) |0.28 | | ||
|[GitHub Flavored Markdown](https://github.github.com/gfm/) |0.28 | | ||
|
||
By supporting the above Markdown flavors, it's possible that Marked can help you use other flavors as well; however, these are not actively supported by the community. | ||
|
||
<h2 id="security">Security</h2> | ||
|
||
The only completely secure system is the one that doesn't exist in the first place. Having said that, we take the security of Marked very seriously. | ||
|
||
Therefore, please disclose potential security issues by email to the project [committers](https://github.com/markedjs/marked/blob/master/AUTHORS.md) as well as the [listed owners within NPM](https://docs.npmjs.com/cli/owner). We will provide an initial assessment of security reports within 48 hours and should apply patches within 2 weeks (also, feel free to contribute a fix for the issue). | ||
|
||
<h2 id="contributing">Contributing</h2> | ||
|
||
The marked community enjoys a spirit of collaboration and contribution from all comers. Whether you're just getting started with Markdown, JavaScript, and Marked or you're a veteran with it all figured out, we're here to help each other improve as professionals while helping Marked improve technically. Please see our [contributing documentation](https://github.com/markedjs/marked/blob/master/CONTRIBUTING.md) for more details. | ||
|
||
For our Contribution License Agreement, see our [license](https://github.com/markedjs/marked/blob/master/LICENSE.md). | ||
|
||
<h2 id="authors">Authors</h2> | ||
|
||
For list of credited authors and contributors, please see our [authors page](https://github.com/markedjs/marked/blob/master/AUTHORS.md). | ||
|
||
<h2 id="license">License</h2> | ||
## License | ||
|
||
Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License) | ||
|
||
See [license](https://github.com/markedjs/marked/blob/master/LICENSE.md) for more details. | ||
|
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<ul> | ||
<li><a href="#marked">About</a></li> | ||
<li><a href="#install">Installation</a></li> | ||
<li><a href="#usage">Usage</a></li> | ||
<li><a href="#specifications">Supported Markdown specifications</a></li> | ||
<li><a href="#security">Security</a></li> | ||
<li><a href="#contributing">Contributing</a></li> | ||
<li><a href="#authors">Authors</a></li> | ||
<li><a href="#license">License</a></li> | ||
</ul> | ||
|
||
<h2 id="marked">Marked</h2> | ||
|
||
Marked is | ||
|
||
1. built for speed.<sup>*</sup> | ||
2. a low-level markdown compiler that allows frequent parsing of large chunks of markdown without caching or blocking for long periods of time.<sup>**</sup> | ||
3. light-weight while implementing all markdown features from the supported flavors & specifications.<sup>***</sup> | ||
4. available as a command line interface (CLI) and running in client- or server-side JavaScript projects. | ||
|
||
<p><small><sup>*</sup> Still working on metrics for comparative analysis and definition.</small><br> | ||
<small><sup>**</sup> As few dependencies as possible.</small><br> | ||
<small><sup>***</sup> Strict compliance could result in slower processing when running comparative benchmarking.</small></p> | ||
|
||
<h2 id="installation">Installation</h2> | ||
|
||
**CLI:** `npm install -g marked` | ||
|
||
**In-browser:** `npm install marked --save` | ||
|
||
<h2 id="usage">Usage</h2> | ||
|
||
**CLI** | ||
|
||
``` bash | ||
$ marked -o hello.html | ||
hello world | ||
^D | ||
$ cat hello.html | ||
<p>hello world</p> | ||
``` | ||
|
||
**Browser** | ||
|
||
```html | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>Marked in the browser</title> | ||
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> | ||
</head> | ||
<body> | ||
<div id="content"></div> | ||
<script> | ||
document.getElementById('content').innerHTML = | ||
marked('# Marked in browser\n\nRendered by **marked**.'); | ||
</script> | ||
</body> | ||
</html> | ||
``` | ||
|
||
|
||
Marked offers [advanced configurations](USING_ADVANCED.md) and [extensibility](USING_PRO.md) as well. | ||
|
||
<h2 id="specifications">Supported Markdown specifications</h2> | ||
|
||
We actively support the features of the following [Markdown flavors](https://github.com/commonmark/CommonMark/wiki/Markdown-Flavors). | ||
|
||
|Flavor |Version | | ||
|:----------------------------------------------------------|:----------| | ||
|The original markdown.pl |-- | | ||
|[CommonMark](http://spec.commonmark.org/0.28/) |0.28 | | ||
|[GitHub Flavored Markdown](https://github.github.com/gfm/) |0.28 | | ||
|
||
By supporting the above Markdown flavors, it's possible that Marked can help you use other flavors as well; however, these are not actively supported by the community. | ||
|
||
<h2 id="security">Security</h2> | ||
|
||
The only completely secure system is the one that doesn't exist in the first place. Having said that, we take the security of Marked very seriously. | ||
|
||
Therefore, please disclose potential security issues by email to the project [committers](AUTHORS.md) as well as the [listed owners within NPM](https://docs.npmjs.com/cli/owner). We will provide an initial assessment of security reports within 48 hours and should apply patches within 2 weeks (also, feel free to contribute a fix for the issue). | ||
|
||
<h2 id="contributing">Contributing</h2> | ||
|
||
The marked community enjoys a spirit of collaboration and contribution from all comers. Whether you're just getting started with Markdown, JavaScript, and Marked or you're a veteran with it all figured out, we're here to help each other improve as professionals while helping Marked improve technically. Please see our [contributing documentation](CONTRIBUTING.md) for more details. | ||
|
||
For our Contribution License Agreement, see our [license](https://github.com/markedjs/marked/blob/master/LICENSE.md). | ||
|
||
<h2 id="authors">Authors</h2> | ||
|
||
For list of credited authors and contributors, please see our [authors page](AUTHORS.md). | ||
|
||
<h2 id="license">License</h2> | ||
|
||
Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License) | ||
|
||
See [license](https://github.com/markedjs/marked/blob/master/LICENSE.md) for more details. | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will prevent publishing the
docs
directory to npm which is usually not advised.