diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..a99de073 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +# Dockerfile for StackEdit + +FROM shykes/nodejs + +RUN apt-get update +RUN apt-get upgrade + +RUN apt-get install -y git-core + +RUN git clone https://github.com/benweet/stackedit.git + +RUN (cd /stackedit/ && npm install) +EXPOSE 3000 + +CMD (cd /stackedit/ && node server.js) diff --git a/README.md b/README.md index 43f35d30..781e0e91 100644 --- a/README.md +++ b/README.md @@ -40,13 +40,16 @@ StackEdit is a free, open-source Markdown editor based on PageDown, the Markdown - [Theming guide][4] ### Support StackEdit: + +Flattr this + [![Fund me on Gittip](https://www.gittip.com/assets/gittip.png)](https://www.gittip.com/stackedit/ "Fund me on Gittip") > **NOTE:** This page has been written and published with [StackEdit][5]. [1]: https://developer.mozilla.org/en-US/docs/Web/Guide/DOM/Storage#localStorage - [2]: https://github.com/benweet/stackedit/blob/master/WELCOME.md#welcome-to-stackedit---welcome "Welcome document" + [2]: https://github.com/benweet/stackedit/blob/master/public/res/WELCOME.md#welcome-to-stackedit---welcome "Welcome document" [3]: https://github.com/benweet/stackedit/blob/master/doc/developer-guide.md#developer-guide "Developer guide" [4]: https://github.com/benweet/stackedit/blob/master/doc/theming.md#stackedit-theming-guide "Theming guide" [5]: https://stackedit.io/ "StackEdit" \ No newline at end of file diff --git a/public/res/extensions/markdownExtra.js b/public/res/extensions/markdownExtra.js index 03bb69c5..d28d0866 100644 --- a/public/res/extensions/markdownExtra.js +++ b/public/res/extensions/markdownExtra.js @@ -64,7 +64,7 @@ define([ options.highlighter = "prettify"; var previewContentsElt = document.getElementById('preview-contents'); editor.hooks.chain("onPreviewRefresh", function() { - _.each(previewContentsElt.querySelectorAll('.prettyprint'), function(elt) { + _.each(previewContentsElt.querySelectorAll('.prettyprint > code'), function(elt) { hljs.highlightBlock(elt); }); });