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

example with css #12

Open
joprice opened this issue Dec 6, 2019 · 4 comments
Open

example with css #12

joprice opened this issue Dec 6, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@joprice
Copy link

joprice commented Dec 6, 2019

Is there a way to add css to an html output?

@patbro
Copy link
Member

patbro commented Dec 9, 2019

Hi there! The Pandoc documentation mentions: "When HTML is used as an intermediate format, the output can be styled using --css." So, please feel free to contribute by including this CLI argument in pandoc.bzl.

@patbro patbro added the enhancement New feature or request label Dec 9, 2019
@joprice
Copy link
Author

joprice commented Dec 9, 2019

I tried that and couldn't get it to work. It silently builds only the html, so I was thinking that the rule has to add that as an extra source file or something along those lines.

@patbro
Copy link
Member

patbro commented Dec 9, 2019

Yes! That's exactly what needs to be added to pandoc.bzl and of course the build file you are building.

I tried putting together some sample code which builds with bazel-pandoc, but Pandoc doesn't seem to pick-up the stylesheet itself. I will try to run Pandoc with --css and see whether that gives the same result later this week.

@patbro
Copy link
Member

patbro commented Dec 22, 2019

Quick update! I put an initial concept together to support CSS for HTML documents in PR #13, please have a look.

@patbro patbro self-assigned this Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants