jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Center alignment using the Markdown module in Jetpack

Open ntpixels opened this issue 11 years ago • 2 comments

A user got in touch because the syntax for centering text is not parsing when the Markdown module is activated.

Steps to reproduce:

  1. Enable Markdown module in Jetpack
  2. Use the syntax for centering text -> center text here yo <-
  3. Publish or preview the text

Expected: the text within that bit of Markdown would appear centered Actual: the text appeared unaffected with the -> and <- on either side

/cc @mattwiebe

ntpixels avatar May 25 '15 21:05 ntpixels

That syntax is specific to some flavors of Markdown, it does not exist in the original Markdown syntax or in Markdown Extra and GitHub Flavored Markdown, which Jetpack uses.

We consequently won't change that in Jetpack, at least not until that syntax is added to one of the Markdown flavors used in Jetpack.

jeherve avatar May 26 '15 06:05 jeherve

Thank you for the catch. Sorry I missed that in my own research and for the unnecessary Issues post.

The user also emailed back about the difference in flavors and explained that this particular center syntax is only available through "Discount Markdown" (http://tedwise.com/markdown/) and "RDiscount".

ntpixels avatar May 26 '15 17:05 ntpixels