public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: gnpan <g.panayotou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Inline HTML in markdwon to PDF
Date: Mon, 13 Sep 2021 11:20:43 -0700 (PDT)	[thread overview]
Message-ID: <993602e0-1263-44d9-a023-01234d72cf0bn@googlegroups.com> (raw)
In-Reply-To: <e3236b2a-bb0a-47b5-a41f-68f8cf5db7ean-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


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

Since you are converting to pdf, you could use some inline LaTeX. 
Try the simple \rule command as shown here <https://texfaq.org/FAQ-rule> or 
load a package for more fancy lines, such as xhfill 
<https://ftp.cc.uoc.gr/mirrors/CTAN/macros/latex/contrib/xhfill/xhfill-doc.pdf>
 or TikZ <https://ctan.org/pkg/pgf>- I am sure there are several others. 

On Sunday, 12 September 2021 at 21:39:50 UTC+3 jjschweige...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 
wrote:

> Hello, I tried searching the archives, however, was not able to find any 
> questions on this. If you know of a post where this question was asked 
> before I would appreciate if you could share the link so I can review it.
>
>  
>
> Basically my issue is this, I have some inline HTML in my markdown file 
> that creates a line, however, when doing a standard conversion with pandoc 
> from md to pdf these lines are not generated.
>
> I also tried to convert the md file to an intermediary HTML file then to 
> PDF, however, this messed up some formatting.
>
>  
>
> Example MD file:
>
> ### Contents
>
>
> <hr style="border-bottom: 1px dashed #686868; width: 50%; margin-left: 0; 
> margin-bottom: 15px" />
>
>
> ### What Is Impacted
>
>
> <hr style="border-bottom: 1px dashed #686868; width: 50%; margin-left: 0; 
> margin-top: 15px" />
>
>  
>
>
> Expected output:
>
>  [image: 1.png]
>
>  
>
> Current output:
>
>  [image: 2.png]
>
>  
>
> When the PDF file is generated the lines are not present as expected. Do 
> you have any recommendations on this or if this is even possible?
>
> 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/993602e0-1263-44d9-a023-01234d72cf0bn%40googlegroups.com.

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

  parent reply	other threads:[~2021-09-13 18:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-12 18:39 Josh Schweigert
     [not found] ` <e3236b2a-bb0a-47b5-a41f-68f8cf5db7ean-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-09-13 18:20   ` gnpan [this message]
2021-09-13 20:14   ` Joost Kremers

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=993602e0-1263-44d9-a023-01234d72cf0bn@googlegroups.com \
    --to=g.panayotou-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).