A very simple webapps to embed remote markdown files into your blogs/websites.
It's used to embed novels hosted in github into our website.
Examples:
- 白い狐と黒い猫 (妖精⊸ロケット) This story is hosted on github.
- インターネットの青い鳥 (妖精⊸ロケット) - github.
- キツネとタヌキ (妖精⊸ロケット) - github.
- golang
$ go get -u "github.com/russross/blackfriday"
$ go get -u "github.com/microcosm-cc/bluemonday"
$ go build -o embed-markdown "github.com/ledyba/embed-markdown"
$ ./embed-markdown -port=8080You can daemonize this process by systemd, upstart, supervisord, etc, etc...
<body>
...
Please enjoy the story:
<script src="https://<server-location>?<file-to-embed>"></script>
e.g.)
<script src="https://app.7io.org/EmbedMarkdown/?https://raw.githubusercontent.com/YorabaTaiju/WhiteFoxAndBlackCat/master/README.md"></script>
</boby><body>
...
Please enjoy the story:
<div id="<elem-id>"></div>
<script async src="https://<server-location>/async/<elem-id>?<file-to-embed>"></script>
e.g.)
<div id="Ewm1yvGPjp"></div>
<script src="https://app.7io.org/EmbedMarkdown/async/Ewm1yvGPjp?https://raw.githubusercontent.com/YorabaTaiju/WhiteFoxAndBlackCat/master/README.md"></script>
</boby>