public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Mladen Babic <mladen.babic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Pandoc Citeproc doesn't work on HTML format
Date: Mon, 7 Nov 2022 07:12:20 -0800 (PST)	[thread overview]
Message-ID: <b67f836a-8d65-4124-bb6c-900d9933d2d2n@googlegroups.com> (raw)
In-Reply-To: <87v8nqon26.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>


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

Hi Albert,

Thanks a lot for the quick reply. 
Ok, I probably missed in the Pandoc citeproc doc that doesn't mention that 
supports only MD, so I thought it would work for all formats with pattern 
@test.

What I actually want to do is when the user uploads the DOCX file, Pandoc 
converts the file to HTML and shows it to the HTML editor for additional 
editing by the user and converts it back to DOCX. 
After converting to Html, the system (my app) will replace current cites in 
HTML cite i.e. [1] with the key from the .bib file (like in my case 
[@test1] so the citeproc will know how to process it.

I guess I need to convert DOCX to MD from MD to HTML but I'm afraid the 
file will lose some of the styles during the conversion process.

Any tips/hints will be appreciated. 

Thank you. 

On Monday, November 7, 2022 at 3:29:29 PM UTC+1 Albert Krewinkel wrote:

> Hi Mladen,
>
> Mladen Babic <mladen...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > I'm trying to reference cites from the .bib file in the HTML but
> > without success. The function perfectly works for Markdown, so my
> > question is does the citeproc work on other formats except for MD?
> >
> > Here are some examples which I use:
> >
> > <!DOCTYPE html>
> > <html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="en">
> > <body>
> > Test [@test1]
> > </body>
> > </html>
>
> The file is parsed as HTML, but body above uses Markdown syntax; it's
> not possible to use that syntax in HTML. However, Markdown can contain
> HTML, so you could try with `pandoc --from=markdown ...`.
>
> Note, however, that pandoc conversions are lossy in general. Going from
> HTML to HTML might not do what you expect.
>
>
> -- 
> Albert Krewinkel
> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
>

-- 
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/b67f836a-8d65-4124-bb6c-900d9933d2d2n%40googlegroups.com.

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

  parent reply	other threads:[~2022-11-07 15:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-07 13:26 Mladen Babic
     [not found] ` <8e24d40c-5977-4912-9e1b-6cfa0f66d5e5n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-11-07 14:21   ` Albert Krewinkel
     [not found]     ` <87v8nqon26.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-11-07 15:12       ` Mladen Babic [this message]
     [not found]         ` <b67f836a-8d65-4124-bb6c-900d9933d2d2n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-11-08  8:07           ` Albert Krewinkel
     [not found]             ` <87r0ydoo0n.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-11-08  9:21               ` 'William Lupton' via pandoc-discuss
     [not found]                 ` <CAEe_xxizCtYTk_m5ROjitBB9WPxivF3rKdmk2vOFqEdZBtLX0Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-11-10 14:09                   ` Mladen Babic

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=b67f836a-8d65-4124-bb6c-900d9933d2d2n@googlegroups.com \
    --to=mladen.babic-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).