Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Markdown for centered text #2579

Closed
ghost opened this issue Dec 6, 2015 · 1 comment
Closed

Feature Request: Markdown for centered text #2579

ghost opened this issue Dec 6, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 6, 2015

Fiction publishers have standard manuscript formats that include text centered on a page. While centered text, arguably, is a formatting instruction that could go against markdown philosophy, there are some precedents for its inclusion in markdown:

There are a number of elements that published manuscripts must have centered:

  • Scene separators (i.e., centered hashmarks)
  • Title
  • Author byline
  • Story ending demarcation (i.e., THE END) (see also scriptwriting)

Additionally, bloggers desire to center images, but have no easy option using markdown. (They resort to embedding HTML [<div class="align-center">Centered text</div>] in the markdown, which defeats the purpose of separating content from presentation--thereby decreasing the text readability, which goes against MD philosophy.)

I'd like to propose an option to suggest that an item be centered, regardless of output format:

-> Centered Text <-

There is an alternative form, but it strikes me as more difficult to parse:

> Centered Text <

Output Formats

HTML:

<div class="align-center">Centered Text</div>

ConTeXt:

\startalignment[middle]Centered Text\stopalignment

DOCX:

<w:p>
  <w:pPr><w:pStyle w:val="Normal"/><w:jc w:val="center"/><w:rPr></w:rPr></w:pPr>
  <w:r><w:rPr></w:rPr><w:t>Centered Text</w:t></w:r>
</w:p>
@jgm
Copy link
Owner

jgm commented Dec 6, 2015

Dup of #719
See also pandoc-discuss threads on this topic, from a while back.

@ghost ghost closed this as completed Dec 6, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant