emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* inline markup within quote
@ 2017-04-19 11:19 Saša Janiška
  2017-04-19 11:54 ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Saša Janiška @ 2017-04-19 11:19 UTC (permalink / raw)
  To: emacs-orgmode

Hello!

I’m moving from Python-powered static site generator to the Hugo which
does support using org-mode markup for writing content.

Currently, my content is written using rst, but although Hugo does
support rst as well, I thought that org-mode could be better match, but
today I did figure out that e.g. it’s not possible to use inline markup
within quote, e.g.:

#+BEGIN_QUOTE
  This is first sentence. *This one I’d like to be bold.* Another small
  sentence.
#+END_QUOTE

In the above example, I do not get bold, but ’*’ are rendered verbatim,
so I wonder if I do miss something in org-mode markup or it simply
built-in limitation similar to some corner cased present in rst markup
as well?


Sincerely,
Gour

-- 
For him who has conquered the mind, the mind is the best of
friends; but for one who has failed to do so, his mind will
remain the greatest enemy.

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

* Re: inline markup within quote
  2017-04-19 11:19 inline markup within quote Saša Janiška
@ 2017-04-19 11:54 ` Nicolas Goaziou
  2017-04-19 12:16   ` Saša Janiška
  2017-04-19 12:25   ` Saša Janiška
  0 siblings, 2 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2017-04-19 11:54 UTC (permalink / raw)
  To: Saša Janiška; +Cc: emacs-orgmode

Hello,

Saša Janiška <gour@atmarama.com> writes:

> I’m moving from Python-powered static site generator to the Hugo which
> does support using org-mode markup for writing content.
>
> Currently, my content is written using rst, but although Hugo does
> support rst as well, I thought that org-mode could be better match, but
> today I did figure out that e.g. it’s not possible to use inline markup
> within quote, e.g.:
>
> #+BEGIN_QUOTE
>   This is first sentence. *This one Id like to be bold.* Another small
>   sentence.
> #+END_QUOTE
>
> In the above example, I do not get bold, but ’*’ are rendered verbatim,
> so I wonder if I do miss something in org-mode markup or it simply
> built-in limitation similar to some corner cased present in rst markup
> as well?

I cannot reproduce the above, e.g., exporting to LaTeX I get

  <blockquote>
  <p>
  This is first sentence. <b>This one Id like to be bold.</b> Another small
  sentence.
  </p>
  </blockquote>

It may be a limitation on the Hugo side.

Regards,

-- 
Nicolas Goaziou

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

* Re: inline markup within quote
  2017-04-19 11:54 ` Nicolas Goaziou
@ 2017-04-19 12:16   ` Saša Janiška
  2017-04-19 12:25   ` Saša Janiška
  1 sibling, 0 replies; 6+ messages in thread
From: Saša Janiška @ 2017-04-19 12:16 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> I cannot reproduce the above,

Have you tried to export to HTML?

> e.g., exporting to LaTeX I get

Exporting to LaTeX and/or e.g. rst, produces correct markup…hmm, now I
see that org --> HTML does work as well…

> It may be a limitation on the Hugo side.

You might be right…will explore further.


Sincerely,
Gour

-- 
Whenever and wherever there is a decline in religious practice,
O descendant of Bharata, and a predominant rise of irreligion —
at that time I descend Myself.

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

* Re: inline markup within quote
  2017-04-19 11:54 ` Nicolas Goaziou
  2017-04-19 12:16   ` Saša Janiška
@ 2017-04-19 12:25   ` Saša Janiška
  2017-04-19 14:23     ` Rasmus
  1 sibling, 1 reply; 6+ messages in thread
From: Saša Janiška @ 2017-04-19 12:25 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> I cannot reproduce the above, e.g., exporting to LaTeX I get

After some testing, I see that it works with the simple example, but if
one uses multi-paragraph text, then it fails…

Can you test with this one?

#+BEGIN_QUOTE
Lorem ipsum dolor sit amet, novum similique nec ea, qui mucius
singulis ea. Eum alterum adolescens te, iusto postulant vim ea. No
dicit bonorum disputationi pro, quo id ridens signiferumque. Maiorum
luptatum persequeris sea id, sed erant docendi civibus eu. Putant
molestie ne nam. Ad ius affert quaestio accommodare.

*Vis possit putant propriae in, ne nam wisi vidit propriae. Cu mea
epicuri interesset dissentiet. Cu pri suas saperet. Vidit pericula pro
et, nulla veniam offendit an mea. Ei habeo dignissim abhorreant per,
mea an odio detraxit dissentias, ut nisl percipit erroribus pri.*

No vocent ponderum recteque sed. Mel utinam persequeris ut. In nam
elitr assentior, vim ad timeam phaedrum, ad mazim vituperata quo. Pri
an quas nemore voluptatibus. Sea id enim delenit accumsan. Ne pri
illud saepe audire, quodsi regione in duo, modo quodsi id per.

#+END_QUOTE


Sincerely,
Gour

-- 
A person is said to be established in self-realization and is called a yogī
[or mystic] when he is fully satisfied by virtue of acquired knowledge and
realization. Such a person is situated in transcendence and is self-controlled.
He sees everything — whether it be pebbles, stones or gold — as the same.

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

* Re: inline markup within quote
  2017-04-19 12:25   ` Saša Janiška
@ 2017-04-19 14:23     ` Rasmus
  2017-04-20  8:54       ` Saša Janiška
  0 siblings, 1 reply; 6+ messages in thread
From: Rasmus @ 2017-04-19 14:23 UTC (permalink / raw)
  To: emacs-orgmode

Saša Janiška <gour@atmarama.com> writes:

> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
>> I cannot reproduce the above, e.g., exporting to LaTeX I get
>
> After some testing, I see that it works with the simple example, but if
> one uses multi-paragraph text, then it fails…
>
> Can you test with this one?
>
> #+BEGIN_QUOTE
> Lorem ipsum dolor sit amet, novum similique nec ea, qui mucius
> singulis ea. Eum alterum adolescens te, iusto postulant vim ea. No
> dicit bonorum disputationi pro, quo id ridens signiferumque. Maiorum
> luptatum persequeris sea id, sed erant docendi civibus eu. Putant
> molestie ne nam. Ad ius affert quaestio accommodare.
>
> *Vis possit putant propriae in, ne nam wisi vidit propriae. Cu mea
> epicuri interesset dissentiet. Cu pri suas saperet. Vidit pericula pro
> et, nulla veniam offendit an mea. Ei habeo dignissim abhorreant per,
> mea an odio detraxit dissentias, ut nisl percipit erroribus pri.*
>
> No vocent ponderum recteque sed. Mel utinam persequeris ut. In nam
> elitr assentior, vim ad timeam phaedrum, ad mazim vituperata quo. Pri
> an quas nemore voluptatibus. Sea id enim delenit accumsan. Ne pri
> illud saepe audire, quodsi regione in duo, modo quodsi id per.
>
> #+END_QUOTE

AFAIK the quote block is irrelevant here.  Perhaps you could customize
org-emphasis-regexp-components (this will only work if Hugo uses Emacs to
generate html).

See the docstring of org-emphasis-regexp-components.  In particular, the
newline component.

There’s also a thorough  explanation here:

    https://emacs.stackexchange.com/a/13828

Hope it helps,
Rasmus

-- 
Slowly unravels in a ball of yarn and the devil collects it

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

* Re: inline markup within quote
  2017-04-19 14:23     ` Rasmus
@ 2017-04-20  8:54       ` Saša Janiška
  0 siblings, 0 replies; 6+ messages in thread
From: Saša Janiška @ 2017-04-20  8:54 UTC (permalink / raw)
  To: emacs-orgmode

Rasmus <rasmus@gmx.us> writes:

> AFAIK the quote block is irrelevant here.  Perhaps you could customize
> org-emphasis-regexp-components (this will only work if Hugo uses Emacs to
> generate html).

IIRC, Hugo uses native parser for org-mode:

https://github.com/chaseadamsio/goorgeous

> There’s also a thorough  explanation here:
>
>     https://emacs.stackexchange.com/a/13828

Thanks a lot for the reference.

> Hope it helps,

Yes, although it seems I might just use AsciiDoc(tor) markup for my
content.


Sincerely,
Gour

-- 
The humble sages, by virtue of true knowledge, see with equal
vision a learned and gentle brāhmana, a cow, an elephant, a dog
and a dog-eater.

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

end of thread, other threads:[~2017-04-20  8:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-19 11:19 inline markup within quote Saša Janiška
2017-04-19 11:54 ` Nicolas Goaziou
2017-04-19 12:16   ` Saša Janiška
2017-04-19 12:25   ` Saša Janiška
2017-04-19 14:23     ` Rasmus
2017-04-20  8:54       ` Saša Janiška

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).