instant-markdown-d icon indicating copy to clipboard operation
instant-markdown-d copied to clipboard

Feature request: Use our own stylesheets?

Open endrebak opened this issue 4 years ago • 5 comments

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.

endrebak avatar Nov 20 '19 09:11 endrebak

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?

ashwinvis avatar Jan 03 '20 11:01 ashwinvis

No, sorry. I will leave that to those more experienced :)

Thanks!

endrebak avatar Jan 03 '20 12:01 endrebak

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?

abhayhegde avatar May 10 '20 19:05 abhayhegde

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.

ashwinvis avatar May 10 '20 19:05 ashwinvis

@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

sgon00 avatar May 25 '20 15:05 sgon00