gautamdhameja / medium-2-md

A CLI tool that converts exported Medium posts (html) to Jekyll/Hugo compatible markdown with front matter.
https://www.npmjs.com/package/medium-2-md
Apache License 2.0
144 stars 19 forks source link

Incorporating Medium tags into Frontmatter #1

Closed agcode closed 5 years ago

agcode commented 5 years ago

It would be wonderful if the tags that are present in a medium post could be incorporated in the front matter.

gautamdhameja commented 5 years ago

Unfortunately, the tags are not available in the exported Medium posts (HTML). I wrote about this in the related blog post:

A couple of things that we need to take care of manually are code fences and tags. There is no tag related information in the exported Medium files. The code fences are also exported as plain text and the markdown conversion ignores them too.

Read more here: https://www.gautamdhameja.com/medium-to-markdown-converter/

agcode commented 5 years ago

Thank you for the quick reply. I should have seen that - rereading the blog now.

Though the information is not present in the exported files, I wonder if it would be possible to extract tags with the convertUrl option.

gautamdhameja commented 5 years ago

I'll check if it could be done for the convertUrl option. Thanks for pointing this out.

gautamdhameja commented 5 years ago

Addressed in version 0.3.0 - https://www.npmjs.com/package/medium-2-md/v/0.3.0. Closing this issue.

agcode commented 5 years ago

Thank you very much