https://github.com/davidmyersdev/markdown-dataset
A collection of various Markdown files for testing purposes.
https://github.com/davidmyersdev/markdown-dataset
Last synced: 10 months ago
JSON representation
A collection of various Markdown files for testing purposes.
- Host: GitHub
- URL: https://github.com/davidmyersdev/markdown-dataset
- Owner: davidmyersdev
- License: mit
- Created: 2022-07-02T17:48:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-04T23:28:09.000Z (over 2 years ago)
- Last Synced: 2024-10-29T23:48:21.183Z (over 1 year ago)
- Language: TypeScript
- Size: 9.81 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `markdown-dataset`
A large dataset of markdown files for testing markdown editors, parsers, renderers, and more.
_Note: This dataset is generated from the READMEs of the top starred repositories on GitHub that have an MIT license. Links to the original sources and licenses are included in the dataset._
## How to use this dataset
```sh
npm install --save-dev markdown-dataset
```
```ts
import testFiles from 'markdown-dataset'
const testStrings = testFiles.reduce((decodedStrings, { markdownEncoded, markdownEncoding }) => {
if (markdownEncoding === 'base64') {
decodedStrings.push(atob(markdownEncoded))
}
return decodedStrings
}, [])
```