From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: Daniel Staal <DStaal-Jdbf3xiKgS8@public.gmane.org>,
pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Converting Markdown to HTML generates unexpected html tags
Date: Thu, 17 Jun 2021 13:06:24 -0700 [thread overview]
Message-ID: <m2k0ms1cjj.fsf@MacBook-Pro-2.hsd1.ca.comcast.net> (raw)
In-Reply-To: <6c7b0012-6f63-6cd7-693c-b19e9ef0a9fd-Jdbf3xiKgS8@public.gmane.org>
Or, you can disable the markdown_in_html_blocks extension:
pandoc -f markdown-markdown_in_html_blocks
Daniel Staal <DStaal-Jdbf3xiKgS8@public.gmane.org> writes:
> On 6/17/21 10:21 AM, James wrote:
>> I am new in using pandoc and I am trying to convert a markdown document
>> to HTML. Inside it I have a bunch of html tags to sort out 2 images into
>> two side by side columns. However when I convert it from Markdown to
>> HTML the <img> tags changes to <pre><code> tags. Is this normal? Am I
>> missing anything out? Below is what I meant.
>>
>> From in Markdown
>>
>> <div class="row">
>> <div class="column">
>> <img src="img1.jpg" style="width:50%"></img>
>> </div>
>> <div class="column">
>> <img src="img2.jpg" style="width:50%"></img>
>> </div>
>> </div>
>>
>
> Your problem here is the indentation - for the img tags you're indenting
> by 4 spaces, which by Markdown rules is a verbatim code block:
> https://pandoc.org/MANUAL.html#indented-code-blocks
>
> Just remove the indentation at the beginning of the lines and you'll be
> fine.
>
> Daniel T. Staal
>
> --
> ---------------------------------------------------------------
> This email copyright the author. Unless otherwise noted, you
> are expressly allowed to retransmit, quote, or otherwise use
> the contents for non-commercial purposes. This copyright will
> expire 5 years after the author's death, or in 30 years,
> whichever is longer, unless such a period is in excess of
> local copyright law.
> ---------------------------------------------------------------
>
> --
> 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/6c7b0012-6f63-6cd7-693c-b19e9ef0a9fd%40usa.net.
--
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/m2k0ms1cjj.fsf%40MacBook-Pro-2.hsd1.ca.comcast.net.
next prev parent reply other threads:[~2021-06-17 20:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-17 14:21 James
[not found] ` <deb28ccc-a17a-4b89-873d-34abb0551a44n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-06-17 17:38 ` Daniel Staal
[not found] ` <6c7b0012-6f63-6cd7-693c-b19e9ef0a9fd-Jdbf3xiKgS8@public.gmane.org>
2021-06-17 20:06 ` John MacFarlane [this message]
2021-06-18 3:57 ` James
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=m2k0ms1cjj.fsf@MacBook-Pro-2.hsd1.ca.comcast.net \
--to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
--cc=DStaal-Jdbf3xiKgS8@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).