public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: James <james.tps09-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Converting Markdown to HTML generates unexpected html tags
Date: Thu, 17 Jun 2021 20:57:26 -0700 (PDT)	[thread overview]
Message-ID: <dab1aa04-8597-4fe1-8bd7-64f085a0b647n@googlegroups.com> (raw)
In-Reply-To: <deb28ccc-a17a-4b89-873d-34abb0551a44n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


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

Thank you for the suggestions! I tried them, and it is working accordingly 
now.

On Thursday, June 17, 2021 at 10:21:43 PM UTC+8 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>
>
> To in HTML
>
> <div class="row">
> <div class="column">
> <pre><code>&lt;img src=&quot;img1.jpg&quot; 
> style=&quot;width:50%&quot;&gt;&lt;/img&gt;</code></pre>
> </div>
> <div class="column">
> <pre><code>&lt;img src=&quot;img2.jpg&quot; 
> style=&quot;width:50%&quot;&gt;&lt;/img&gt;</code></pre>
> </div>
> </div>
>
> I am using pandoc 1.19.2.4 compiled with pandoc-types 1.17.0.5, texmath 
> 0.9.4.4, skylighting 0.3.3.1
> Thanks !
>

-- 
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/dab1aa04-8597-4fe1-8bd7-64f085a0b647n%40googlegroups.com.

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

      parent reply	other threads:[~2021-06-18  3:57 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
2021-06-18  3:57   ` James [this message]

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=dab1aa04-8597-4fe1-8bd7-64f085a0b647n@googlegroups.com \
    --to=james.tps09-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).