We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
markdown-css-paths
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 like file:///tmp/burl7ynLE7.html and thus "./stylesheet.css" can't be found.
markdown-preview
file:///tmp/burl7ynLE7.html
"./stylesheet.css"
With test.md:
test.md
<!-- -*- markdown-css-paths: ("./stylesheet.css"); -*- --> # Test Test!
… and stylesheet.css like:
stylesheet.css
h1 { color: red; }
… both in the same directory then:
M-x normal-mode
y
C-c C-c p
;; Package-Version: 20241107.349
;; Package-Revision: 6f59f72ca040
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior
Since #835 got merged I can now set
markdown-css-paths
as a filelocal variable like this:
It would be nice to be able to let the path be relative instead like
this:
… and it would resolve the path to the style sheet relative to the
markdown file.
Actual Behavior
When I run
markdown-preview
the HTML is written to a file likefile:///tmp/burl7ynLE7.html
and thus"./stylesheet.css"
can'tbe found.
Steps to Reproduce
With
test.md
:… 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.See: Mark
markdown-css-paths
safe as a file local var #856.test.md
doC-c C-c p
Software Versions
;; Package-Version: 20241107.349
;; Package-Revision: 6f59f72ca040
The text was updated successfully, but these errors were encountered: