Since #835 got merged I can now set markdown-css-paths
as a file
local variable like this:
<!-- -*- markdown-css-paths: ("/home/mattiasb/Code/github.com/mattiasb/repository/stylesheet.css"); -*- -->
It would be nice to be able to let the path be relative instead like
this:
<!-- -*- markdown-css-paths: ("./stylesheet.css"); -*- -->
… and it would resolve the path to the style sheet relative to the
markdown file.
When I run markdown-preview
the HTML is written to a file likefile:///tmp/burl7ynLE7.html
and thus "./stylesheet.css"
can't
be found.
With test.md
:
<!-- -*- markdown-css-paths: ("./stylesheet.css"); -*- --> # Test Test!
… and stylesheet.css
like:
… both in the same directory then:
M-x normal-mode
to make sure the local variable is loaded.y
to allow the file local variable.markdown-css-paths
safe as a file local var #856.test.md
do C-c C-c p
;; Package-Version: 20241107.349
;; Package-Revision: 6f59f72ca040
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4