Capture a dev.to article in clean markdown via API.
This shortcut uses the Dev.to API's getArticleByPath endpoint to capture an individual article's data and (markdown-formatted) body contents into a new Drafts draft, formatted (by default) as such:
# Meme Monday 🎃
- [**Source**](https://dev.to/ben/meme-monday-1o5g)
- Byline: [Ben Halpern](https://dev.to/ben)
- Published: `10242022-074045`
---
[![Meme Monday 🎃](https://res.cloudinary.com/practicaldev/image/fetch/s--tZUC89vk--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/914owpwnth5neaasd5a7.png)](https://dev.to/ben/meme-monday-1o5g)
Welcome to another **Meme Monday** post! Today's cover image comes from [last week's thread](https://dev.to/ben/meme-monday-1299).
DEV is an inclusive space! Humor in poor taste will be downvoted by mods.
Dev Community Article ⇨ Drafts Shortcut
Updated
10242022-162724
Social
Capture a dev.to article in clean markdown via API.
This shortcut uses the Dev.to API's
getArticleByPath
endpoint to capture an individual article's data and (markdown-formatted) body contents into a new Drafts draft, formatted (by default) as such:By default, it also captures the entirety of the API response in a Data Jar jar specified at install.
Example Output