instant-markdown-d
instant-markdown-d copied to clipboard
Feature request: Use our own stylesheets?
Would it be possible for instant-markdown-d to take a stylesheet as a command line arg and also autoreload when it is changed?
Thanks for the great work btw.
In principle, you can edit the html template yourself and add stylesheets here:
https://github.com/suan/instant-markdown-d/blob/5e0d7c81d99b8f9cf5d8ce9970c519a8adb770ae/index.html#L8-L25
Any suggestions for a user interface to pass the link to the stylesheet?
No, sorry. I will leave that to those more experienced :)
Thanks!
In principle, you can edit the html template yourself and add stylesheets here:
https://github.com/suan/instant-markdown-d/blob/5e0d7c81d99b8f9cf5d8ce9970c519a8adb770ae/index.html#L8-L25
Any suggestions for a user interface to pass the link to the stylesheet?
I have installed vim-instant-markdown and it calls in instant-markdown-d. I do not know where is it calling from (I do not have that plugin seperately), so I do not know how to access this html file. However, I have been manually adding a custom-css dark theme file via browser's Inspect Element options. Could you please guide an easier method?
Remove your current installation, clone instant-markdown-d, edit index.html and follow installation for development:
https://github.com/suan/instant-markdown-d/blob/master/CONTRIBUTING.md
If anyone can figure out a way to pass this as a command line argument, you can submit a PR.
@abhayhegde
It's pretty easy to find out. I am trying this plugin today and found this issue. You can simply which instant-markdown-d
to find out where is your installation. and then look for lib/node_modules/instant-markdown-d
directory. for me:
$ which instant-markdown-d
/home/user/.nvm/versions/node/v14.3.0/bin/instant-markdown-d
$ cd /home/user/.nvm/versions/node/v14.3.0/
$ ls
bin CHANGELOG.md include lib LICENSE README.md share
$ cd lib/node_modules/instant-markdown-d/
$ ls
CHANGELOG.md css instant-markdown-d LICENSE package.json version.js
CONTRIBUTING.md index.html instant-markdown-d-0.2.0-rc.2.tgz node_modules README.md