Skip to content

Commit

Permalink
Preserve span tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarnung committed Nov 26, 2018
1 parent 7d115b3 commit d448572
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addon/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Advent of Code to Markdown",
"version": "1.0.2",
"version": "1.0.3",
"description": "Converts a given Advent of Code page to a GitHub-compatible Markdown file.",
"icons": {
"32": "icons/aoc-to-markdown.svg"
Expand Down
1 change: 1 addition & 0 deletions content_scripts/to-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const turndownService = new TurndownService({
headingStyle: 'atx'
});
turndownService.use(gfm);
turndownService.keep(['span']);

const markdown = turndownService.turndown(newDoc).concat('\n');

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aoc-to-markdown",
"version": "1.0.2",
"version": "1.0.3",
"description": "Converts a given Advent of Code page to a GitHub-compatible Markdown file.",
"scripts": {
"build": "webpack",
Expand Down

0 comments on commit d448572

Please sign in to comment.