Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Use our own stylesheets? #68

Open
endrebak opened this issue Nov 20, 2019 · 5 comments
Open

Feature request: Use our own stylesheets? #68

endrebak opened this issue Nov 20, 2019 · 5 comments

Comments

@endrebak
Copy link

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.

@ashwinvis
Copy link
Collaborator

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?

@endrebak
Copy link
Author

endrebak commented Jan 3, 2020

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

Thanks!

@abhayhegde
Copy link

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?

@ashwinvis
Copy link
Collaborator

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.

@sgon00
Copy link

sgon00 commented May 25, 2020

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants