Skip to content

Textile justified or centered header not parsed #2674

Closed
kpym opened this Issue · 1 comment

2 participants

@kpym

In textile we can center à header with

h1=. Test

that should produce the following HTML

<h1 style="text-align:center">Test</h1>

but pandoc transpile it to

<p>h1=. Test</p>

In a similar way we can justify (h1<>.) and right align (h1>.).

@kpym kpym referenced this issue in osener/markup.rocks
Open

Textile justified or centered header not parsed #14

@jgm
Owner

It would not be hard to make pandoc add a style attribute in this case, but this would only affect HTML output; you wouldn't get proper behavior in e.g. PDF output. Still, this would be better than emitting a = character!

@jgm jgm closed this in a1021bd
@c-forster c-forster pushed a commit to c-forster/pandoc that referenced this issue
@jgm Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
Closes #2674.
973ec60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.