This project is read-only.

URL for opening documents

Jan 14, 2015 at 9:11 PM
Hi @daan!

I'm interested if there is an option in Madoko.net for opening a particular document.

For example, we published a document here: http://docs.inf.mit.bme.hu/remo/01-allapot/out/01-allapot.html. Can we provide a link next to the "Created with Madoko.net" caption that
1) navigates to Madoko.net and
2) opens the source of the document (https://github.com/FTSRG/remo/blob/gh-pages/01-allapot/01-allapot.md)?

Thanks,
Gabor
Jan 14, 2015 at 9:19 PM
Yes, there is a way to do that, in particular https://www.madoko.net/editor.html#url=https://raw.githubusercontent.com/FTSRG/remo/gh-pages/01-allapot/01-allapot.md

I just did that but unfortunately, the UTF-8 didn't come through correctly :-(
Not sure if that is a bug on the Madoko side or on the github server side. I will look into it now and get back to you.
To be continued...
Jan 14, 2015 at 10:16 PM
Edited Jan 14, 2015 at 10:17 PM
I fixed the trouble with the UTF-8 encoding. The above link should now take you directly to the editor with your document.
To add the link right after the Madoko Logo, you can add a metadata rule:
.LogoMadoko   : after=" [edit](https://www.madoko.net/editor.html#url=https://raw.githubusercontent.com/FTSRG/remo/gh-pages/01-allapot/01-allapot.md)"
(without linebreaks)

Let me know if this works for you. Note though that people opening the document like this can edit&view the document, but not save it directly -- they need to use "Save To" and put it on their own storage (Dropbox or Github). For people to directly cooperate on the document, you to make them 'collaborators' on the Github repository.

Best,
-- Daan

btw. Nice document and I see you are already using quite advanced metadata rules :-) If you have more feedback it is highly appreciated.
If you don't mind me asking, why do you prefer to use Mathjax?
Jan 16, 2015 at 9:49 PM
Thanks, this solution works fine.
If you don't mind me asking, why do you prefer to use Mathjax?
We found that if we use many equations, the preview has a considerable latency---sometimes it does not render any equations. MathJax works very well in modern browsers, not only on desktop computers, but also on smartphones and tablets.
I personally think that the MathJax rendering of the equations is much sharper and therefore looks nicer than the generated pictures.

Gabor
Jan 17, 2015 at 8:09 PM
Great -- good to hear it works for you :-)

With regard to math rendering, I have the opposite opinion :-) Perhaps it depends a lot on the kind of screen you have (I am using a 4k screen so that may make a difference). Anyway, here is a nice place where you can compare the renderings:
http://research.microsoft.com/en-us/um/people/daan/madoko/samples/mathdemo/out/mathdemo.html

For light math, MathJax works well but if your document is full of math it may become slowish.

Best,
-- Daan