From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Tassilo Horn <tsdh@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: Exporter omits inline code blocks [8.0.3 (release_8.0.3-238-g172061 @ /home/horn/Repos/el/org-mode/lisp/)]
Date: Thu, 13 Jun 2013 10:50:34 +0200 [thread overview]
Message-ID: <87obba1jj9.fsf@gmail.com> (raw)
In-Reply-To: <87d2rq4jfq.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Thu, 13 Jun 2013 08:24:25 +0200")
Hello,
Tassilo Horn <tsdh@gnu.org> writes:
> lately, I've used ox-reveal.el to create a presentation. Thereby, I
> found out that inline source code blocks are ignored, i.e., the text is
> simply not there in the HTML5 output.
>
> Here's a test heading:
>
> * Test Heading
>
> - Here's some inline code: src_clojure{(+ 1 2 3)}
> - Here's some more inline code: src_clojure{(- 1 2 3)}
>
>
> ox-reveal.el derives the export from ox-html. That defines
>
> (inline-src-block . org-html-inline-src-block)
>
> with
>
> (defun org-html-inline-src-block (inline-src-block contents info)
> "Transcode an INLINE-SRC-BLOCK element from Org to HTML.
> CONTENTS holds the contents of the item. INFO is a plist holding
> contextual information."
> (let* ((org-lang (org-element-property :language inline-src-block))
> (code (org-element-property :value inline-src-block)))
> (error "Cannot export inline src block")))
>
> and ox-reveal doesn't (yet) override that. So in theory, exporting the
> entry above should signal an error, but it doesn't
>
> I also tried the plain html export. Still, there's no error. The
> function is simply not called at all.
>
> So there seems to be a bug in the exporter which doesn't seem to
> recognize inline source code.
There's no bug. Babel simply removes all inline source blocks when
executing source blocks. Hence, they cannot be parsed (and therefore
exported).
This function is just a placeholder for now.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2013-06-13 8:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-13 6:24 Bug: Exporter omits inline code blocks [8.0.3 (release_8.0.3-238-g172061 @ /home/horn/Repos/el/org-mode/lisp/)] Tassilo Horn
2013-06-13 8:50 ` Nicolas Goaziou [this message]
2013-06-13 10:02 ` Tassilo Horn
2013-06-13 13:06 ` Eric Schulte
2013-06-14 7:26 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87obba1jj9.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=tsdh@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).