public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* org-mode revealjs notes broken in 1.19.2.1?
@ 2017-02-12 17:47 Sam Halliday
       [not found] ` <41171efc-0495-4ebd-ae6e-9105c110bef3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Sam Halliday @ 2017-02-12 17:47 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1109 bytes --]

Hi all,

I have noticed that my old talks no longer render as expected in pandoc. If 
I have an org-mode presentation, such as the one 
at https://github.com/fommil/fommil.github.io/tree/master/scalasphere16 
(run the dotfile as a script to generate the output)

All the speaker notes now appear as "NOTES" divs, not "notes" as previously 
and revealjs isn't able to understand this.

As a workaround I'm adding this to the overrides.css

.NOTES {
    display: none;
}

is this as regression in pandoc or in revealjs?

Best regards,
Sam

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/41171efc-0495-4ebd-ae6e-9105c110bef3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1733 bytes --]

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

* Re: org-mode revealjs notes broken in 1.19.2.1?
       [not found] ` <41171efc-0495-4ebd-ae6e-9105c110bef3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2017-02-12 18:32   ` Albert Krewinkel
  0 siblings, 0 replies; 2+ messages in thread
From: Albert Krewinkel @ 2017-02-12 18:32 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Sam Halliday <sam.halliday-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I have noticed that my old talks no longer render as expected in pandoc. If I
> have an org-mode presentation, such as the one at
> https://github.com/fommil/fommil.github.io/tree/master/scalasphere16 (run the
> dotfile as a script to generate the output)
>
> All the speaker notes now appear as "NOTES" divs, not "notes" as previously and
> revealjs isn't able to understand this.
>
> As a workaround I'm adding this to the overrides.css
>
> .NOTES {
> display: none;
> }

Alternative workaround: lowercase "notes" in your org files:
`#+BEGIN_notes` or `#+begin_notes` should work just as well.

> is this as regression in pandoc or in revealjs?

Can't tell for sure, but html output of pandoc and Emacs are equal
(ignoring whitespace).

    #+BEGIN_NOTES
    hello
    #+END_NOTES

will output 

    <div class="NOTES">
    <p>
    hello
    </p>
    </div>

Third workaround: use [panflute] or similar filter to lowercase the
"NOTES" class. Using my (hacky and experimental) [panlunatic] library
as an example:

    panlunatic = require("panlunatic")
    function Div(s, attr)
      if attr.class == "NOTES" then attr.class = "notes" end
      return panlunatic.Div(s, attr)
    end
    setmetatable(_G, {__index = panlunatic})

[panflute]: https://github.com/sergiocorreia/panflute
[panlunatic]: https://github.com/tarleb/panlunatic


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

end of thread, other threads:[~2017-02-12 18:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-12 17:47 org-mode revealjs notes broken in 1.19.2.1? Sam Halliday
     [not found] ` <41171efc-0495-4ebd-ae6e-9105c110bef3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-02-12 18:32   ` Albert Krewinkel

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).