public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Craig Parker <craig.fossfolks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Unable to center text in Markdown
Date: Tue, 11 Oct 2022 07:44:33 -0700 (PDT)	[thread overview]
Message-ID: <4a77f2aa-e010-4187-8ebd-f4959c5eae9fn@googlegroups.com> (raw)
In-Reply-To: <5466ba6b-31e3-4288-a86b-32463bdefe32n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 972 bytes --]

I wonder if you've got to make a class.

MD:
:::pc
Sample text
:::

CSS:
.pc p {text-align:center;}

Or some such.
On Tuesday, October 11, 2022 at 10:39:03 AM UTC-4 richar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:

> Hello!
>
> I'm trying to center some text in my markdown document. I've tried:
> ```
> <p align="center"> Sample Text </p>
> <center> Sample Text </p>
> ```
> And used `pandoc test.md -o test.pdf` to compile my document. However, the 
> text shows up as left-aligned and not centered.
>
> How may I resolve this issue?
>
> Thank you.
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4a77f2aa-e010-4187-8ebd-f4959c5eae9fn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1661 bytes --]

  parent reply	other threads:[~2022-10-11 14:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-11 14:39 Richard Hu
     [not found] ` <5466ba6b-31e3-4288-a86b-32463bdefe32n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-11 14:44   ` Craig Parker [this message]
2022-10-11 18:27   ` gnpan
     [not found]     ` <2d6fdf96-2731-4970-a9eb-0f0d89e92c37n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-11 20:14       ` Richard Hu
     [not found]         ` <CAPKRM+Uv6Sg_x6sYRvp0R9xhu77=Yn3wk+em5hun5xZ4WoWvOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-10-12 10:23           ` BPJ

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=4a77f2aa-e010-4187-8ebd-f4959c5eae9fn@googlegroups.com \
    --to=craig.fossfolks-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).