github markdown flavour

This commit is contained in:
Julien Bisconti 2016-12-30 16:16:47 +02:00
parent bb7675e48f
commit 2b9fc20c6e

View File

@ -12,6 +12,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.5.4/showdown.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.5.4/showdown.min.js"></script>
<script> <script>
const converter = new showdown.Converter(); const converter = new showdown.Converter();
converter.setFlavor('github');
fetch('https://raw.githubusercontent.com/veggiemonk/awesome-docker/master/README.md') fetch('https://raw.githubusercontent.com/veggiemonk/awesome-docker/master/README.md')
.then(res => res.text()) .then(res => res.text())
.catch(err => console.error(err)) .catch(err => console.error(err))