Re: [O] ox-md conforming pandoc-markdown

2014-01-23 Thread Michel Kuhlmann
On Thu, Jan 23, 2014 at 12:12:30PM +0100, Nicolas Goaziou wrote:
> >
> > This seems easy enough to fix, we simply need to add:
> >
> >   (org-element-put-property item :post-blank nil)
> >
> > to the org-md-item function. Can anybody tell me if this is a bad
> > idea? Otherwise I will send a patch.
> 
> This should be already fixed in maint branch.
> 

Great, thanks



Re: [O] ox-md conforming pandoc-markdown

2014-01-23 Thread Nicolas Goaziou
Hello,

Erik Hetzner  writes:

> Michel Kuhlmann wrote:
>> I found these issues inconvenient:
>> 
>> - Listings create blank-lines in between
>> + Currently
>> - uno
>>- uno
>>- dos->  - dos
>>- tres
>> - tres
>> + Desired
>>- uno- uno
>>- dos->  - dos
>>- tres   - tres
>
> This seems easy enough to fix, we simply need to add:
>
>   (org-element-put-property item :post-blank nil)
>
> to the org-md-item function. Can anybody tell me if this is a bad
> idea? Otherwise I will send a patch.

This should be already fixed in maint branch.


Regards,

-- 
Nicolas Goaziou



Re: [O] ox-md conforming pandoc-markdown

2014-01-22 Thread Michel Kuhlmann
> > - customisable meta-data export (currently nothing exported) of, say,
> >
> > […]
> > * pandoc header
> > 
> > % myTitle
> > % meMyself
> > % 2014-01-21
> 
> Basic support for this is in the org-pandoc project, which bases its
> export on ox-md but adds some additional features.
> 
> I’d like to expand org-pandoc to support more pandoc features,
> including those you mention. I just pushed up a (very rudimentary)
> change to my fork of this project to support proper table export for
> pandoc as well.
> 
>   https://github.com/egh/org-pandoc

This sounds great, thanks.



Re: [O] ox-md conforming pandoc-markdown

2014-01-22 Thread Erik Hetzner
Hi Michel,

At Tue, 21 Jan 2014 12:00:01 +0100,
Michel Kuhlmann wrote:
> 
> Hi,
> I often convert files with `pandoc`. Currently there is no
> pandoc-org-mode-reader, so I'm using markdown as an intermediate step.
> 
> I'm aware of ; this
> also uses `ox-md`, so the issue applies also there.
> 
> I found these issues inconvenient:
> 
> - Listings create blank-lines in between
> + Currently
> - uno
>- uno
>- dos->  - dos
>- tres
> - tres
> + Desired
>- uno- uno
>- dos->  - dos
>- tres   - tres

This seems easy enough to fix, we simply need to add:

  (org-element-put-property item :post-blank nil)

to the org-md-item function. Can anybody tell me if this is a bad
idea? Otherwise I will send a patch.

> - customisable meta-data export (currently nothing exported) of, say,
>
> […]
> * pandoc header
> 
> % myTitle
> % meMyself
> % 2014-01-21

Basic support for this is in the org-pandoc project, which bases its
export on ox-md but adds some additional features.

I’d like to expand org-pandoc to support more pandoc features,
including those you mention. I just pushed up a (very rudimentary)
change to my fork of this project to support proper table export for
pandoc as well.

  https://github.com/egh/org-pandoc

best, Erik
-- 
Sent from my free software system .



Re: [O] ox-md conforming pandoc-markdown

2014-01-21 Thread Nicolas Goaziou
Hello,

Michel Kuhlmann  writes:

> I often convert files with `pandoc`. Currently there is no
> pandoc-org-mode-reader, so I'm using markdown as an intermediate step.
>
> I'm aware of ; this
> also uses `ox-md`, so the issue applies also there.
>
> I found these issues inconvenient:
>
> - Listings create blank-lines in between
> + Currently
> - uno
>- uno
>- dos->  - dos
>- tres
> - tres
> + Desired
>- uno- uno
>- dos->  - dos
>- tres   - tres

I am aware of this. A patch should land in maint very soon.

> - Formulas are getting surrounded by \(  \); 
> + Currently
> $Q_{max}$  -> \(Q_{max}\)
> + Desired
> $Q_{max}$  -> $Q_{max}$
>
> - customisable meta-data export (currently nothing exported) of, say,
>
> #+TITLE: myTitle
> #+KEYWORDS: cat1 cat2
> #+AUTHOR: meMyself
> #+DATE : 2014-01-21
> #+OPTIONS: toc:t
>
> + Desired
> * meta-yaml-block
>
> ---
> title:  myTitle
> author: meMyself
> catgories: cat1 cat2
> date: 2014-01-21
> toc: toc:t
> ...
>
> * pandoc header
>
> % myTitle
> % meMyself
> % 2014-01-21

The goal of ox-md.el is to provide vanilla Mardown, so anyone can derive
a more specialized back-end out of it. Formulas (handled by ox-html) and
meta-data export do not belong to the vanilla flavour.


Regards,

-- 
Nicolas Goaziou



[O] ox-md conforming pandoc-markdown

2014-01-21 Thread Michel Kuhlmann
Hi,
I often convert files with `pandoc`. Currently there is no
pandoc-org-mode-reader, so I'm using markdown as an intermediate step.

I'm aware of ; this
also uses `ox-md`, so the issue applies also there.

I found these issues inconvenient:

- Listings create blank-lines in between
+ Currently
- uno
   - uno
   - dos->  - dos
   - tres
- tres
+ Desired
   - uno- uno
   - dos->  - dos
   - tres   - tres

- Formulas are getting surrounded by \(  \); 
+ Currently
$Q_{max}$  -> \(Q_{max}\)
+ Desired
$Q_{max}$  -> $Q_{max}$

- customisable meta-data export (currently nothing exported) of, say,

#+TITLE: myTitle
#+KEYWORDS: cat1 cat2
#+AUTHOR: meMyself
#+DATE : 2014-01-21
#+OPTIONS: toc:t

+ Desired
* meta-yaml-block

---
title:  myTitle
author: meMyself
catgories: cat1 cat2
date: 2014-01-21
toc: toc:t
...

* pandoc header

% myTitle
% meMyself
% 2014-01-21

Kind regards,
Michel