Render markdown files directly in public share#48
Conversation
|
BTW: Heavily inspired by https://app.simplenote.com/publish/DSLBYB 🙈 I have seen this and wanted it too 😆 |
|
I love it! But... if there is a 50mb text file it will download an render it 🙈 ? Maybe some small sanity check would make sense here... Only download if < 1 mb or so? |
How do I know? Pare the download button? 🙈 |
Ah - there is an hidden input field with the value. |
renders markdown files for single share pages directly inline and uses a readable styling Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6664ee0 to
bd52e37
Compare
Limited to 512 kB now. 😉 |
|
Awesome, this looks so cool and makes it awesome to share simple notes! :) (Btw on your Simplenote link, the rendering doesn't seem to work … also FYI, Simplenote server is not open source, until recently I thought that. ;) |
Renders markdown files for single share pages directly inline and uses a readable styling (instead of the squared preview image for the text file).
Looks like this then:
In case the loading of the preview failed it will show the default image preview as before.