all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Larrabee Strow <strow@umbc.edu>
To: emacs-orgmode@gnu.org
Subject: HTML literal output
Date: Mon, 28 Dec 2015 11:42:23 -0500	[thread overview]
Message-ID: <CAB7EQ_bv2qoc9GBHNXwfk6Xh1aWuPWwcV4CvfZVCc9QPfJJCcA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1409 bytes --]

I am using orgmode to produce html for the Hugo static web site generator.
Hugo requires yaml at the top of the html file for configuration.
Previously (8.3beta) this worked by putting the yaml inside BEGIN_HTML
blocks., but it does not work with version 8.3.2

org-mode Version 8.3.2

I am unable to get orgmode to pass literal "html" on export.

Input file:
-----------------------------------------------
#+STARTUP: showall expand
#+options: toc:nil
#+BEGIN_HTML
---
date: "2014-07-28"
title: "Testeight"
type: "page"
menu: "docs"
weight: 3
---
#+END_HTML

* Hello

This is the first line


html output file:
----------------------------------------------
<div class="HTML">
<p>
&#x2014;
date: "2014-07-28"
title: "Testeight"
type: "page"
menu: "docs"
weight: 3
&#x2014;
</p>

etc.

In orgmode 8.3beta this worked.  I got the html export file below

---
date: "2014-07-28"
title: "Testeight"
type: "page"
menu: "docs"
weight: 3
---

<div id="outline-container-sec-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> Hello</h2>
<div class="outline-text-2" id="text-1">
<p>
This is the first line
</p>
</div>
</div>


Also, is there any way to make "Body only:" on as the default in the
exporter menu?  I do not want to use publish.

Thank you.

Larrabee

------------------------------------------
L. Larrabee Strow
UMBC Physics Department
Email: strow@umbc.edu
Phone: 724-288-6933

[-- Attachment #2: Type: text/html, Size: 2672 bytes --]

                 reply	other threads:[~2015-12-28 16:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAB7EQ_bv2qoc9GBHNXwfk6Xh1aWuPWwcV4CvfZVCc9QPfJJCcA@mail.gmail.com \
    --to=strow@umbc.edu \
    --cc=emacs-orgmode@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.