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

support Blogdown #11

HarlanH opened this Issue Mar 11, 2018 · 0 comments


None yet
1 participant

HarlanH commented Mar 11, 2018

This is a great project -- thank you for building it! Saved me a bunch of time! I'm using Blogdown for my site, and there was some manual effort that could be automated. This issue is some notes that someone (maybe me, if I have time) could use to make it easier to copy Medium posts to Blogdown format.

If --blogdown is provided on the command line:

  • instead of writing to stdout, save the result to a file with the pattern YYYY-MM-DD-<slug>.Rmd, where the slug does not include the hex string at the end of the Medium slug
  • add a "this post was first published" block at the top of the document
  • create a Blogdown header

Here's an example of a header. Note that the title, date, tags, slug, and URL for the "first published" block can all easily be generated automatically.

title: On How and When to Teach Layers of Abstraction in Programming
author: ''
date: '2017-10-05'
  - professional
  - programming
  - R
  - teaching
  - computer science
slug: on-how-and-when-to-teach-layers-of-abstraction-in-programming

_[This post was originally published on Medium](
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment