unofficial mirror of emacs-orgmode@gnu.org
 help / color / mirror / code / Atom feed
* Newline woes when exporting to mediawiki markup
@ 2021-06-01  7:59 Dov Grobgeld
  2021-06-01  9:08 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Dov Grobgeld @ 2021-06-01  7:59 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

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

end of thread, other threads:[~2021-06-01 20:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01  7:59 Newline woes when exporting to mediawiki markup Dov Grobgeld
2021-06-01  9:08 ` Nicolas Goaziou
2021-06-01 20:41   ` Dov Grobgeld

unofficial mirror of emacs-orgmode@gnu.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/orgmode/0 orgmode/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 orgmode orgmode/ https://yhetil.org/orgmode \
		emacs-orgmode@gnu.org
	public-inbox-index orgmode

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git