Skip to content

Commit

Permalink
Added article exert at the top as block quote
Browse files Browse the repository at this point in the history
  • Loading branch information
enrico-kaack committed Jan 3, 2019
1 parent 39a7279 commit 4e7a70c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ function convertArticleToMarkdown(article) {

//add article titel as header
markdown = "# " + article.title + "\n" + markdown;

//add summary if exist
if (article.excerpt != null) {
markdown = "> " + article.excerpt + "\n\n" + markdown;
}
return markdown;
}

Expand Down

0 comments on commit 4e7a70c

Please sign in to comment.