* Is it possible to pass CSS styles from the command line without using a file? @ 2022-08-31 19:32 name name [not found] ` <1158e1bf-63c3-4e88-94bd-da6892939c99n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: name name @ 2022-08-31 19:32 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 863 bytes --] Sometimes I need to convert a document from Markdown to HTML with some minor adjustments to my default style sheet, and therefore it would be convenient to pass those adjustments directly from command line, without using a second CSS file. Something like this: $ pandoc file.md --standalone --css="default.css" --include-in-header="<style>body{columns:4;}</style>" --output file.html This doesn't work, but maybe there is another similar option? -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1158e1bf-63c3-4e88-94bd-da6892939c99n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 1204 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <1158e1bf-63c3-4e88-94bd-da6892939c99n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Is it possible to pass CSS styles from the command line without using a file? [not found] ` <1158e1bf-63c3-4e88-94bd-da6892939c99n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2022-08-31 19:48 ` John MacFarlane [not found] ` <64C736B4-9373-4326-B706-C4B368B81133-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: John MacFarlane @ 2022-08-31 19:48 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw You should be able to do -Vheader-includes=‘<style>body{colums:4;}</style>’ > On Aug 31, 2022, at 12:32 PM, name name <ivan20151013-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Sometimes I need to convert a document from Markdown to HTML with some minor adjustments to my default style sheet, and therefore it would be convenient to pass those adjustments directly from command line, without using a second CSS file. Something like this: > > $ pandoc file.md --standalone --css="default.css" --include-in-header="<style>body{columns:4;}</style>" --output file.html > > This doesn't work, but maybe there is another similar option? > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1158e1bf-63c3-4e88-94bd-da6892939c99n%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/64C736B4-9373-4326-B706-C4B368B81133%40gmail.com. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <64C736B4-9373-4326-B706-C4B368B81133-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: Is it possible to pass CSS styles from the command line without using a file? [not found] ` <64C736B4-9373-4326-B706-C4B368B81133-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2022-08-31 20:06 ` name name 0 siblings, 0 replies; 3+ messages in thread From: name name @ 2022-08-31 20:06 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1702 bytes --] Or --variable=header-includes:"<style>body{colums:4;}</style>". Thanks! On Wednesday, August 31, 2022 at 10:49:00 PM UTC+3 fiddlosopher wrote: > You should be able to do -Vheader-includes=‘<style>body{colums:4;}</style>’ > > > > > On Aug 31, 2022, at 12:32 PM, name name <ivan20...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Sometimes I need to convert a document from Markdown to HTML with some > minor adjustments to my default style sheet, and therefore it would be > convenient to pass those adjustments directly from command line, without > using a second CSS file. Something like this: > > > > $ pandoc file.md --standalone --css="default.css" > --include-in-header="<style>body{columns:4;}</style>" --output file.html > > > > This doesn't work, but maybe there is another similar option? > > > > -- > > You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/1158e1bf-63c3-4e88-94bd-da6892939c99n%40googlegroups.com > . > > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4ebc34e4-c7ba-4d96-9ec4-0096397ef3c4n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 2763 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-31 20:06 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-08-31 19:32 Is it possible to pass CSS styles from the command line without using a file? name name [not found] ` <1158e1bf-63c3-4e88-94bd-da6892939c99n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2022-08-31 19:48 ` John MacFarlane [not found] ` <64C736B4-9373-4326-B706-C4B368B81133-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2022-08-31 20:06 ` name name
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).