I posted a possible answer for this on meta (Download questions or chats for offline reading), but perhaps it belongs here on the main site instead. I have a paclet that downloads a stack exchange question url, and creates a notebook version where code blocks are evaluatable.
It can be downloaded from:
https://github.com/carlwoll/Stack-Exchange-Stylesheet/releases/tag/v0.1-alpha
Download the .paclet file, and then run:
PacletInstall[file]
To use, do:
<<StackExchange`
NotebookPut @ StackExchangeView["http://mathematica.stackexchange.com/q/3535/45431"]
where I use this question as an example (the NotebookPut
won't be necessary when the paclet is final). The following is snippet of what the notebook output looks like:
I use Import[url, "XMLObject"]
instead of the Stack Exchange api (since I didn't know about the api when I started), so I need to investigate the merits of using the api or not.
It is also possible to use style key tabbing (tab at the start of a cell), shift-enter and right click to modify "StackExchange" styled cells to a markdown version, a hybrid WYSIWIG version, or a deployed version (although this aspect is a bit buggy). This is what the notebook looks like after converting the snippet to the deployed version:
As you can see, the deployed version still needs work (h2 and * formatting)
Feed back is welcomed.