marcogadget / github-base64-images

Test and converter for having images insert into commit and issues as "Markdown Base64 Image Tags".
GNU General Public License v3.0
0 stars 0 forks source link
base64 data-uri github image images import include markdown nodejs

github-base64-images

run server

node index.js

Testing the web server

get the javascript file with

curl -i localhost:9000/server.js

testing with non-existing file

curl -i localhost:9000/invalid-file.doc


Test #1 (Using Markdown)

Test #2 (Using HTML)

Test #3 (à l'aide d'un fichier dans le répo) Un exemple d'image et Markdown


About the web server:

It could be faster to do this way :
```
npm install http-server -g
```
To use it:
```
cd Folder
http-server
```
Or, like this:
```
http-server /home/user/Folder
```

À propos de conversion d'image en JS:

https://github.com/Automattic/node-canvas https://github.com/joshmarinacci/node-pureimage https://www.thepolyglotdeveloper.com/2016/02/convert-an-uploaded-image-to-a-base64-string-in-node-js/

var fs = require('fs');

var imageAsBase64 = fs.readFileSync('./your-image.png', 'base64');

EN DÉTAILS :

Ce qui fonctionne :

Liens intéressants :

http://www.jefclaes.be/2012/04/add-images-to-github-readme.html https://stackoverflow.com/a/10189374 https://github.com/github/markup/issues/270 https://chris.beams.io/posts/git-commit/#seven-rules

Ici on parle de language-git qui permetterais une syntax spécialisé dans les commit : https://github.com/atom/github/issues/118

Ici à propos de commitView : https://github.com/atom/github/pull/421

Markdown Cheatsheet : https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet

Github Advanced Formating : https://help.github.com/articles/working-with-advanced-formatting/

Ici, peut-être une solution (approche) qui pourrait être intégré dans un extension Chrome et Firefox. L'extension pourrait faire un get de la description soit par API ou directement dans le navigateur et nous l'afficher en HTML après l'avoir converti. https://www.npmjs.com/package/git-commit-markdown

Standard Karma pour les fichiers Changelog. Peut-être une solution là-dedans ? http://karma-runner.github.io/1.0/dev/git-commit-msg.html

Autres billets de blog intéressants

https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html http://365git.tumblr.com/post/3308646748/writing-git-commit-messages

À chercher :

Très intéressants : LOL Commits :

https://github.com/mroth/lolcommits

Pourquoi ne pas utiliser Atom ?

https://atom.io/ voir language-git https://flight-manual.atom.io/getting-started/sections/installing-atom/#debian-and-ubuntu-debapt