all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Turn off html entities in md export
@ 2015-06-26  3:01 Rustom Mody
  2015-06-26  7:54 ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Rustom Mody @ 2015-06-26  3:01 UTC (permalink / raw)
  To: emacs-orgmode

Bitbucket does not allow html entities in markdown
See https://bitbucket.org/rustom/vit-projects/wiki/emacs
and search for &#

So how to turn off html entities in md export?

And if thats not available any tips on how to hook say a sed-filter to
ox-md export?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Turn off html entities in md export
  2015-06-26  3:01 Turn off html entities in md export Rustom Mody
@ 2015-06-26  7:54 ` Nicolas Goaziou
  2015-06-26  8:11   ` Rustom Mody
  2015-06-26 15:19   ` Rustom Mody
  0 siblings, 2 replies; 8+ messages in thread
From: Nicolas Goaziou @ 2015-06-26  7:54 UTC (permalink / raw)
  To: Rustom Mody; +Cc: emacs-orgmode

Hello,

Rustom Mody <rustompmody@gmail.com> writes:

> Bitbucket does not allow html entities in markdown
> See https://bitbucket.org/rustom/vit-projects/wiki/emacs
> and search for &#
>
> So how to turn off html entities in md export?

It depends on where these entities are coming from. 

Anyway, vanilla Markdown supports HTML so anything "ox-md" cannot
translate into Markdown syntax (e.g., tables) is exported as pure HTML.

> And if thats not available any tips on how to hook say a sed-filter to
> ox-md export?

See filters in (info "(org)Advanced configuration").


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Turn off html entities in md export
  2015-06-26  7:54 ` Nicolas Goaziou
@ 2015-06-26  8:11   ` Rustom Mody
  2015-06-26  8:43     ` Nicolas Goaziou
  2015-06-26 15:19   ` Rustom Mody
  1 sibling, 1 reply; 8+ messages in thread
From: Rustom Mody @ 2015-06-26  8:11 UTC (permalink / raw)
  To: emacs-orgmode

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

On Fri, Jun 26, 2015 at 1:24 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Rustom Mody <rustompmody@gmail.com> writes:
>
> > Bitbucket does not allow html entities in markdown
> > See https://bitbucket.org/rustom/vit-projects/wiki/emacs
> > and search for &#
> >
> > So how to turn off html entities in md export?
>
> It depends on where these entities are coming from.
>

Simple basic thing
... becomes …
-- becomes –
etc


>
> Anyway, vanilla Markdown supports HTML so anything "ox-md" cannot
> translate into Markdown syntax (e.g., tables) is exported as pure HTML.
>

For systems (bitbucket is just a common example) that simply does not work
because of security or whatever reasons
See
https://bitbucket.org/site/master/issue/6930/support-some-or-all-html-in-markdown-bb
for BB users clamoring but BB not likely to listen


> > And if thats not available any tips on how to hook say a sed-filter to
> > ox-md export?
>
> See filters in (info "(org)Advanced configuration").
>

Thanks
Will try to check that out

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Turn off html entities in md export
  2015-06-26  8:11   ` Rustom Mody
@ 2015-06-26  8:43     ` Nicolas Goaziou
  2015-06-26 13:44       ` Rustom Mody
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2015-06-26  8:43 UTC (permalink / raw)
  To: Rustom Mody; +Cc: emacs-orgmode

Rustom Mody <rustompmody@gmail.com> writes:

> Simple basic thing
> ... becomes …
> -- becomes –
> etc

In this particular case, see `org-export-with-special-strings'.

> For systems (bitbucket is just a common example) that simply does not work
> because of security or whatever reasons
> See
> https://bitbucket.org/site/master/issue/6930/support-some-or-all-html-in-markdown-bb
> for BB users clamoring but BB not likely to listen

In the worst case, you might need to implement a derived export back-end
applying Bitbucket constraints.

Regards,

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Turn off html entities in md export
  2015-06-26  8:43     ` Nicolas Goaziou
@ 2015-06-26 13:44       ` Rustom Mody
  0 siblings, 0 replies; 8+ messages in thread
From: Rustom Mody @ 2015-06-26 13:44 UTC (permalink / raw)
  To: emacs-orgmode

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

On Fri, Jun 26, 2015 at 2:13 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Rustom Mody <rustompmody@gmail.com> writes:
>
> > Simple basic thing
> > ... becomes …
> > -- becomes –
> > etc
>
> In this particular case, see `org-export-with-special-strings'.
>
>
Thanks Nicolas
Thats a help

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Turn off html entities in md export
  2015-06-26  7:54 ` Nicolas Goaziou
  2015-06-26  8:11   ` Rustom Mody
@ 2015-06-26 15:19   ` Rustom Mody
  2015-06-26 15:27     ` Rasmus
  2015-06-26 15:32     ` Nicolas Goaziou
  1 sibling, 2 replies; 8+ messages in thread
From: Rustom Mody @ 2015-06-26 15:19 UTC (permalink / raw)
  To: emacs-orgmode

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

On Fri, Jun 26, 2015 at 1:24 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Rustom Mody <rustompmody@gmail.com> writes:
>
> > Bitbucket does not allow html entities in markdown
> > See https://bitbucket.org/rustom/vit-projects/wiki/emacs
> > and search for &#
> >
> > So how to turn off html entities in md export?
>
> It depends on where these entities are coming from.
>
> Anyway, vanilla Markdown supports HTML so anything "ox-md" cannot
> translate into Markdown syntax (e.g., tables) is exported as pure HTML.
>

As https://bitbucket.org/tutorials/markdowndemo/overview#markdown-header-tab
shows
bitbucket md tables are very similar to org tables (and html <table> is
disallowed)

How to say (to ox-md) "Leave tables as they are"  ?

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Turn off html entities in md export
  2015-06-26 15:19   ` Rustom Mody
@ 2015-06-26 15:27     ` Rasmus
  2015-06-26 15:32     ` Nicolas Goaziou
  1 sibling, 0 replies; 8+ messages in thread
From: Rasmus @ 2015-06-26 15:27 UTC (permalink / raw)
  To: emacs-orgmode

Rustom Mody <rustompmody@gmail.com> writes:

> How to say (to ox-md) "Leave tables as they are"  ?

See org-element-interpret-data and e.g. org-org-identity.

Rasmus

-- 
And when I’m finished thinking, I have to die a lot

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Turn off html entities in md export
  2015-06-26 15:19   ` Rustom Mody
  2015-06-26 15:27     ` Rasmus
@ 2015-06-26 15:32     ` Nicolas Goaziou
  1 sibling, 0 replies; 8+ messages in thread
From: Nicolas Goaziou @ 2015-06-26 15:32 UTC (permalink / raw)
  To: Rustom Mody; +Cc: emacs-orgmode

Rustom Mody <rustompmody@gmail.com> writes:

> As https://bitbucket.org/tutorials/markdowndemo/overview#markdown-header-tab
> shows
> bitbucket md tables are very similar to org tables (and html <table> is
> disallowed)
>
> How to say (to ox-md) "Leave tables as they are"  ?

Write a derived export backend, e.g., ox-md-bb.el that will translate
tables properly according to Bitbucket rules.

You can also use a hook that will turn Org tables into Bitbucket
markdown tables and wrap them within a #+begin_md...#+end_md block.


Regards,

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-06-26 15:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-26  3:01 Turn off html entities in md export Rustom Mody
2015-06-26  7:54 ` Nicolas Goaziou
2015-06-26  8:11   ` Rustom Mody
2015-06-26  8:43     ` Nicolas Goaziou
2015-06-26 13:44       ` Rustom Mody
2015-06-26 15:19   ` Rustom Mody
2015-06-26 15:27     ` Rasmus
2015-06-26 15:32     ` Nicolas Goaziou

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.