public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Aidan Reilly <aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Transform a fenced div to mkdocs markdown admonition format
Date: Sat, 5 Nov 2022 16:26:32 +0000	[thread overview]
Message-ID: <CAM4RMshpnCHthCjffGJMiXuxbRKwWR++zxpqW62TUWN64395bQ@mail.gmail.com> (raw)
In-Reply-To: <875yft5wqc.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2009 bytes --]

That did it Albert - thank you! I need to spend a bit more time brushing up
on Lua I think.

Aidan

On Sat, Nov 5, 2022 at 1:58 PM Albert Krewinkel <albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
wrote:

>
> Aidan Reilly <aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> writes:
>
> > Thanks Albert!
> >
> > I really appreciate you looking at this. When I run the above, I get
> > this error:
> >
> > Error running filter admonitions.lua:
> > admonitions.lua:10: attempt to index a nil value (local 'opts')
> > stack traceback:
> > admonitions.lua:10: in main chunk
>
> The most likely cause for this is an older pandoc version. The
> `PANDOC_WRITER_OPTIONS` global was introduced in pandoc 2.17.
>
> The filter can be made more robust by replacing line 9 with
>
> ```lua
> local opts = PANDOC_WRITER_OPTIONS or {columns = 72}
> ```
>
> That will ensure that the filter works even with older pandoc versions
> (but with reduced functionality in that case).
>
>
>
> --
> Albert Krewinkel
> GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "pandoc-discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/pandoc-discuss/65G0Kuih1wA/unsubscribe.
> To unsubscribe from this group and all its topics, 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/875yft5wqc.fsf%40zeitkraut.de
> .
>
>

-- 
Aidan

-- 
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/CAM4RMshpnCHthCjffGJMiXuxbRKwWR%2B%2BzxpqW62TUWN64395bQ%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 3342 bytes --]

      parent reply	other threads:[~2022-11-05 16:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-03 16:14 Aidan Reilly
     [not found] ` <ddc82450-b82b-4b8f-9d5f-30c6a28c206fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-11-03 20:09   ` John MacFarlane
     [not found]     ` <7AF275BD-12EB-4424-84E5-1A45FF675520-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-11-03 20:40       ` Aidan Reilly
     [not found]         ` <CAM4RMsh1iqDjA7WqfCuWJV4NCD_ELXfFL0iV+pGUWASvgAzq5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-11-03 20:55           ` Aidan Reilly
     [not found]             ` <CAM4RMsj6rwDLDmNxNzvUDODw0qa5NZgZtbAS_ozf+XJ3ZE+jHw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-11-03 21:00               ` Albert Krewinkel
     [not found]                 ` <87h6zf698z.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-11-04  0:25                   ` Aidan Reilly
     [not found]                     ` <CAM4RMshtHUuFSHryQqAgquMduCd5xSM7c2CKnvR0H1=zsg2xQQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-11-05  8:03                       ` Albert Krewinkel
     [not found]                         ` <87a6556cg2.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-11-05 13:09                           ` Aidan Reilly
     [not found]                             ` <CAM4RMsiRRywBgcHHQgfUxV5BZQfQw5sgqy44za4VC9=_TmqYPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-11-05 13:10                               ` Aidan Reilly
2022-11-05 13:53                               ` Albert Krewinkel
     [not found]                                 ` <875yft5wqc.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-11-05 16:26                                   ` Aidan Reilly [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=CAM4RMshpnCHthCjffGJMiXuxbRKwWR++zxpqW62TUWN64395bQ@mail.gmail.com \
    --to=aireilly-h+wxahxf7alqt0dzr+alfa@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).