public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Stephan Boltzmann <stephan2boltzmann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Figure blocks in AST on Windows, but not on Linux
Date: Wed, 21 Jun 2023 12:51:04 -0700 (PDT)	[thread overview]
Message-ID: <e8c84ab1-4e87-4580-bf4e-dd1bb23f4c1fn@googlegroups.com> (raw)


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

Hello everybody out there,

Running the following filter

function Pandoc (doc)
  nblocks = 0
  for i, block in ipairs(doc.blocks) do nblocks=nblocks+1 end
  lblock = nblocks
  for i=1,nblocks do
    block = doc.blocks[i]
    print(block.t)
  end
end

on the following document

---
title: Test
author: Author
---
# Introduction
Some text ...
![Figure 1](image.png)

prints a Figure block on Windows but a Para block on Linux.

This would mean that the output of pandoc depends on the operating system.
Is there a way to make it more independent of the operating system or am I 
just doing an obvious mistake?

-- 
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/e8c84ab1-4e87-4580-bf4e-dd1bb23f4c1fn%40googlegroups.com.

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

             reply	other threads:[~2023-06-21 19:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AQHZpHm5u5r0SVy3fUmSX4+SF0NQSa+VricBgAD9EwCABieKEA==>
     [not found] ` <AQHZpHm5u5r0SVy3fUmSX4+SF0NQSa+VricB>
2023-06-21 19:51   ` Stephan Boltzmann [this message]
     [not found]     ` <e8c84ab1-4e87-4580-bf4e-dd1bb23f4c1fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-06-21 20:04       ` AW: " denis.maier-NSENcxR/0n0
     [not found]         ` <0daeba7dd8ba47c4ae51945307fd2597-NSENcxR/0n0@public.gmane.org>
2023-06-22 13:10           ` Stephan Boltzmann
     [not found]             ` <f47ffa73-354d-4bf0-9abe-8ff6135ea426n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-06-26  9:09               ` AW: " denis.maier-NSENcxR/0n0
     [not found]                 ` <e9f4c3ace99b4e848445fb7e754d1868-NSENcxR/0n0@public.gmane.org>
2023-07-02 19:15                   ` Stephan Boltzmann

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=e8c84ab1-4e87-4580-bf4e-dd1bb23f4c1fn@googlegroups.com \
    --to=stephan2boltzmann-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).