emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Custom export backend based on HTML: how to implement own blocks?
@ 2014-11-23 15:44 Marcin Borkowski
  2014-11-23 17:28 ` Richard Lawrence
  2014-11-23 19:17 ` Charles Berry
  0 siblings, 2 replies; 3+ messages in thread
From: Marcin Borkowski @ 2014-11-23 15:44 UTC (permalink / raw)
  To: Org-Mode mailing list

Hello,

I'd like to (ab)use the "underline" syntax for something else.
Basically, I'd like to translate

_underlined_

to

<span class="my-own"><variant>underlined<variant></span>

and

_underlined|with variant_

to

<span class="my own"><variant>underlined</variant><variant>with
variant</variant></span>

but only if the underlining is between

#+BEGIN_MYBLOCK
...
#+END_MYBLOCK

How to achieve this?  In particular, I'd like to know:

1. How can I know (in org-html-underline, for instance) whether I am in
a MYBLOCK or not?

2. How do I best translate the "|" syntax into "variants"?  More
specifically: is it a good idea to do it in org-my-html-underline, by
analysing the "underlined" text (as a string) or maybe it's better to
write a filter?  (I guess the former idea is better.)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

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

end of thread, other threads:[~2014-11-23 19:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-23 15:44 Custom export backend based on HTML: how to implement own blocks? Marcin Borkowski
2014-11-23 17:28 ` Richard Lawrence
2014-11-23 19:17 ` Charles Berry

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