emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-html-head documentation mistake?
@ 2018-01-14  0:26 Adam Porter
  2018-01-15 15:40 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Porter @ 2018-01-14  0:26 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

The docstring for org-html-head gives this example:

#+BEGIN_SRC html
<style type="text/css">
    <![CDATA[
    .timestamp, .timestamp-kwd { color: #268bd2 !important; }
    blockquote > p { color: #333333 !important; font-size: 95% !important; }
    ]]>
</style>
#+END_SRC

When I customized the variable, I used those "CDATA" lines exactly, but
they prevented the stylesheet I added from working in the browser
(Chrome in this case).  When I changed the "CDATA" lines to the ones
that are in org-html-style-default, it worked:

#+BEGIN_SRC html
<style type="text/css">
    <!--/*--><![CDATA[/*><!--*/
    .timestamp, .timestamp-kwd { color: #268bd2 !important; }
    blockquote > p { color: #333333 !important; font-size: 95% !important; }
    /*]]>*/-->
</style>
#+END_SRC

So I'm guessing that the docs need to be updated.

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-html-head documentation mistake?
  2018-01-14  0:26 org-html-head documentation mistake? Adam Porter
@ 2018-01-15 15:40 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2018-01-15 15:40 UTC (permalink / raw)
  To: Adam Porter; +Cc: emacs-orgmode

Hi Adam,

> The docstring for org-html-head gives this example:

Thanks for reporting this, I fixed this using this example:

   <style type="text/css">
    /*<![CDATA[*/
      p { font-weight: normal; color: gray; }
      h1 { color: black; }
      .title { text-align: center; }
      .todo, .timestamp-kwd { color: red; }
      .done { color: green; }
    /*]]>*/
   </style>

Can you check and report if this is correct?

Thanks,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-15 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-14  0:26 org-html-head documentation mistake? Adam Porter
2018-01-15 15:40 ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).