[Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-09-01 Thread Rafael
Puneeth writes: >> On Sun, Aug 29, 2010 at 11:48 PM, Rafael wrote: >>> 2. Note that Wordpress also includes support for inline math expressions >>> written in LaTeX, like this: $latex E=mc^2$, and displayed expressions, >>> like this: $latex \displaystyle E=mc^2$ >>> (http://rvftestblog.wordpre

Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-09-01 Thread Puneeth
Rafael, This has been Done. Happy Blogging, Puneeth On Sun, Aug 29, 2010 at 11:48 PM, Rafael wrote: > > Now, in case you wanted to have some more feature requests, ;-), here > they are: > > 1. Making an option to disable the inclusion of ':light="true"'. > > 2. Note that Wordpress also includes

Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-29 Thread Eric S Fraga
On Sun, 29 Aug 2010 15:07:11 +0530, Puneeth wrote: [...] > This has been fixed. Thanks to a patch from Benjamin Beckwith. You can > now use any WP shortcode blocks in your org2blog posts, without losing > line breaks. > > Also, org2blog now directly posts babel src blocks as WP's sourcecode > b

[Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-29 Thread Rafael
Puneeth writes: > This has been fixed. Thanks to a patch from Benjamin Beckwith. You can > now use any WP shortcode blocks in your org2blog posts, without losing > line breaks. > > Also, org2blog now directly posts babel src blocks as WP's sourcecode > blocks, without modifying the src blocks in

Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-29 Thread Puneeth
On Wed, Aug 25, 2010 at 6:21 PM, Puneeth wrote: >> 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.

[Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-25 Thread Andrei Jirnyi
On Mon, 23 Aug 2010 14:03:23 -0500, Erik Iverson wrote: > post-process the html file generated by the export process, (there is > probably a hook so you can do this automatically): apparently it's org-export-html-final-hook --aj ___ Emacs-orgmode mai

[Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-25 Thread Rafael
Puneeth writes: > 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 >

Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-25 Thread Benjamin Beckwith
Eric, I should mention that I am using the "Syntaxhighlighter Evolved" plugin for Wordpress. It allows shortcodes with just the language name. I probably should use the [sourcecode lang="..."] variant instead. Maybe that is why my version did not work for you? My latest page created with my co

Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-25 Thread Eric S Fraga
On Wed, 25 Aug 2010 18:21:22 +0530, Puneeth wrote: > > 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 wrote: > > I think Benjamin means that he has customized this > > > > http://en.support.wordpress.c

Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-25 Thread Puneeth
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 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 t

[Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-25 Thread Rafael
Eric S Fraga writes: > On Tue, 24 Aug 2010 23:32:01 -0400, Benjamin Beckwith > wrote: >> >> Rafael, >> >> I had my shortcodes setup to accept the language directly. Your change >> should work as you indicated. I have an additional fix to my code that >> should behave better for you. I add a

Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-25 Thread Eric S Fraga
On Tue, 24 Aug 2010 23:32:01 -0400, Benjamin Beckwith wrote: > > Rafael, > > I had my shortcodes setup to accept the language directly. Your change > should work as you indicated. I have an additional fix to my code that > should behave better for you. I add a property, org-protected, that >

Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-25 Thread Eric S Fraga
On Tue, 24 Aug 2010 21:36:40 -0500, Rafael wrote: > > Benjamin Beckwith writes: > > > Hi, I also was interested in posting these blocks (through org2blog in > > wordpress). The code I posted below is added to > > 'org-export-preprocess-hooks' where it looks for BEGIN_SRC blocks as > > well as

[Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-24 Thread Benjamin Beckwith
Rafael, I had my shortcodes setup to accept the language directly. Your change should work as you indicated. I have an additional fix to my code that should behave better for you. I add a property, org-protected, that prevents processing of the text. I tried it on your code blocks by calling or

[Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-24 Thread Rafael
Benjamin Beckwith writes: > Hi, I also was interested in posting these blocks (through org2blog in > wordpress). The code I posted below is added to > 'org-export-preprocess-hooks' where it looks for BEGIN_SRC blocks as > well as ':' blocks of code. > > In the case of BEGIN_SRC blocks, I add a h

[Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-24 Thread Benjamin Beckwith
Hi, I also was interested in posting these blocks (through org2blog in wordpress). The code I posted below is added to 'org-export-preprocess-hooks' where it looks for BEGIN_SRC blocks as well as ':' blocks of code. In the case of BEGIN_SRC blocks, I add a header option, :syntaxhl where I can pas