Go to file
dependabot[bot] 2a977e7084
Bump lodash from 4.17.15 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 22:16:16 +00:00
examples add backticks for code blocks 2019-12-23 22:55:37 -08:00
lib add backticks for code blocks 2019-12-23 22:55:37 -08:00
.gitignore add internal vscode files to gitignore 2019-12-23 22:19:07 -08:00
LICENSE add license 2017-04-28 17:28:22 -07:00
README.md add note on examples to readme 2019-12-23 22:55:57 -08:00
index.js add ability to run from command line 2019-12-22 15:11:27 -08:00
package-lock.json Bump lodash from 4.17.15 to 4.17.21 2021-05-10 22:16:16 +00:00
package.json add genExample command 2019-12-23 22:54:56 -08:00

README.md

Medium to markdown

npm npm

This module lets you take a medium post and convert it to markdown.

Command Line Usage

Setup:

  1. Install npm if not already installed
  2. Clone the repo
  3. run npm install inside the repo

Outputting to command line:

npm run convert https://medium.com/@almenon214/keeping-yourself-motivated-as-a-coder-a16a6fcf49c7

Replace the link with the article you want to convert.

Outputting to file:

npm run convert https://medium.com/@almenon214/keeping-yourself-motivated-as-a-coder-a16a6fcf49c7 > exampleOutput.md

Replace the link with the article you want to convert.

What does the output look like?

See examples/exampleOutput.md for an example of what https://medium.com/@almenon214/keeping-yourself-motivated-as-a-coder-a16a6fcf49c7 looks like when converted to markdown.

API Usage

Currently, the module supports getting the markdown from a medium post by URL.

const mediumToMarkdown = require('medium-to-markdown');

mediumToMarkdown.convertFromUrl('<medium post url>')
.then(function (markdown) {
  console.log(markdown); //=> Markdown content of medium post
});