Skip to content

Commit

Permalink
modify the markdown text 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
madneal committed Jun 8, 2017
1 parent 015775f commit 4ea7cc4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"browser_action": {
"default_title": "Export to Markdown",
"default_icon": "icons/icon-64.png",
"default_icon": "icons/icon-48.png",
"default_popup": "popup.html"
},
"manifest_version": 2,
Expand Down
8 changes: 4 additions & 4 deletions scripts/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ function exportMedium () {
}
})
.then(function (text) {
const story = parseJsonToMarkdown(text)
const markdownText = story.markdown.join('')
document.querySelector('#source').value = story.markdown
document.querySelector('.right-area').innerHTML = snarkdown(markdownText)
const story = parseJsonToMarkdown(text);
const markdownText = story.markdown.join('');
document.querySelector('#source').value = markdownText;
document.querySelector('.right-area').innerHTML = snarkdown(markdownText);
// return story.markdown
})
// .then(function(contents) {
Expand Down

0 comments on commit 4ea7cc4

Please sign in to comment.