emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Puneeth <punchagan@gmail.com>
To: Rafael <rvf0068@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: How to customize the org-mode's BEGIN_SRC HTML output
Date: Wed, 25 Aug 2010 18:21:22 +0530	[thread overview]
Message-ID: <AANLkTi=6Ei+ZR+DR_Z_2g4ynTpJQNFj8RUKoxO4qzcT=@mail.gmail.com> (raw)
In-Reply-To: <871v9mx4me.fsfhello@somewhere.com>

Hi All,

I'm not sure if I should've jumped into the discussion much earlier,
but anyways,

On Wed, Aug 25, 2010 at 5:53 PM, Rafael <rvf0068@gmail.com> wrote:
> I think Benjamin means that he has customized this
>
> http://en.support.wordpress.com/shortcodes/
>
> so that his code works directly. But it is not clear to me which changes
> he had to do for that, nor if that is available to free wordpress
> users...

I do not understand the part about wordpress shortcodes and stuff. For
the theme I use on my wordpress.com blog, I do not get any syntax
highlighting from the direct html export of org(2blog).  I only
learnt, recently that wordpress has a special way to include code for
syntax highlighting. (Some themes seem to highlight code in documents
generated directly using org's export. for eg: [1])

> Oh, and by the way, with Org-mode version 7.01h I concur with Eric in
> that I unfortunately still lose the linebreaks and get LaTeX code
> modified with Benjamin's new version..

The line breaks being stripped off is due to code in org2blog. It has
nothing to do with org-mode's export. Wordpress does not ignore
linebreaks in the content, which looks very ugly for normal posts.
Code in org2blog strips off the line breaks from the html generated by
org-export-as-html. It checks for <pre> and <blockquote> tags and
leaves out the newlines within those tags. This is (most) probably
what is causing trouble.

I'll only be able to look into it in the weekend. Anybody is free to
beat me to that. :)

HTH,
Puneeth

[1] - http://rvftestblog.wordpress.com/2010/08/14/testing-code-blocks/

  reply	other threads:[~2010-08-25 12:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-25  3:32 How to customize the org-mode's BEGIN_SRC HTML output Benjamin Beckwith
2010-08-25  8:30 ` Eric S Fraga
2010-08-25 12:23   ` Rafael
2010-08-25 12:51     ` Puneeth [this message]
2010-08-25 13:15       ` Eric S Fraga
2010-08-26  1:54       ` Rafael
2010-08-29  9:37       ` Puneeth
2010-08-29 18:18         ` Rafael
2010-09-01 10:42           ` Puneeth
2010-09-01 14:38             ` Rafael
2010-08-29 19:28         ` Eric S Fraga
2010-08-25 14:49   ` Benjamin Beckwith
  -- strict thread matches above, loose matches on Subject: below --
2010-08-24 13:39 Benjamin Beckwith
2010-08-25  2:36 ` Rafael
2010-08-25  8:19   ` Eric S Fraga

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='AANLkTi=6Ei+ZR+DR_Z_2g4ynTpJQNFj8RUKoxO4qzcT=@mail.gmail.com' \
    --to=punchagan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rvf0068@gmail.com \
    /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).