From: Dov Grobgeld <dov.grobgeld@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Newline woes when exporting to mediawiki markup
Date: Tue, 1 Jun 2021 10:59:50 +0300 [thread overview]
Message-ID: <CA++fsGFFTqViynH9d=e_tX8B9SDQNsaWxm-rgo8qCH9y2f18wg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1133 bytes --]
Hello,
I've been trying to use the ox-mediawiki.el export option to export from
org mode to mediawiki mode.
Unfortunately the exporting does a poor job of exporting lists. E.g. the
following org mode source:
```
* A section
- An item
- Another item
- A subitem
- Another subitem
- Back to first
```
is exported as:
```
= A section =
* An item
* Another item
* A subitem
* Another subitem
* Back to first
```
The expected is:
```
= A section =
* An item
* Another item
** A subitem
** Another subitem
* Back to first
```
I tried to modify ox-mediawiki.el to solve the following two issues:
- Get rid of redundant newlines between exported list items
- Replicate the leading asterisk to reflect the indentation level of the
list.
To get of the newline I tried to rewrite the org-export "item" translation
function `org-mw-item` but I would either get no newlines at all between my
items, or an extra newline between two subsequent items.
I just noted that ox-mediawiki is derived from the html backend, so perhaps
the limitations are there.
I would appreciate any guidance of how to fix this.
Thanks!
[-- Attachment #2: Type: text/html, Size: 3290 bytes --]
next reply other threads:[~2021-06-01 8:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-01 7:59 Dov Grobgeld [this message]
2021-06-01 9:08 ` Newline woes when exporting to mediawiki markup Nicolas Goaziou
2021-06-01 20:41 ` Dov Grobgeld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA++fsGFFTqViynH9d=e_tX8B9SDQNsaWxm-rgo8qCH9y2f18wg@mail.gmail.com' \
--to=dov.grobgeld@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.