I'm using 2.5, the one that Ubuntu 20.04 has. Sorry, I should have realised that there might be a difference between that and the latest version.

On Sunday, 13 September 2020 at 23:36:19 UTC+2 John MacFarlane wrote:

What version of pandoc are you using?

With recent pandoc, you do get a slide with Foo
with this input.

Thomas Hodgson <thomas....@gmail.com> writes:

> Here is something that would be different after the change:
>
> A md like this:
>
> ```
> # Foo
>
> Foo
>
> ## Bar
>
> Bar
> ```
>
> The command: `$ pandoc --slide-level=2 -t beamer -o test.tex test.md`
> produces LaTeX where there is text ('Foo') outside of a frame. If
> ignorefametext is removed from the template, doing $ pandoc --slide-level=2
> -t beamer -o test.pdf test.md` would give different results, i.e., 'Foo'
> would now be printed on a new slide after the section, rather than not
> appearing at all.
>
> On Sunday, 13 September 2020 at 22:26:02 UTC+2 Thomas Hodgson wrote:
>
>> Is there a case where it would be expected that something would be written
>> outside a frame, and that it should be ignored?
>>
>> I have checked the modified template with sections, and with subsections,
>> and without either.
>>
>> On Sunday, 13 September 2020 at 21:23:19 UTC+2 John MacFarlane wrote:
>>
>>>
>>> We used to ignore stuff outside of frames.
>>> However, this changed with
>>>
>>> https://github.com/jgm/pandoc/commit/f431f67b2f2f5071345fa5800658375afaf44c1b
>>> (somewhat controversially)
>>>
>>> It may be that after this commit, removing ignorenonframetext
>>> would be okay. Maybe someone can test that out (with a lot of
>>> different cases, please).
>>>
>>> Thomas Hodgson <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>>>
>>> > The default.latex template uses the 'ignorenonframetext' for Beamer. Is
>>> > there a good reason for this? If that was removed from the template,
>>> there
>>> > would be no need to handle making titles differently for beamer and
>>> other
>>> > formats, i.e., it could be done with `\maketitle` in both cases. I
>>> think
>>> > that that's better when using themes that treat a title slide
>>> differently
>>> > from ordinary slides (such as Metropolis).
>>> >
>>> > --
>>> > 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>>> > To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/pandoc-discuss/69361063-4c69-4403-85c7-31d943d138fdn%40googlegroups.com
>>> .
>>>
>>
>
> --
> 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-discus...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8d3b5815-bc30-4113-9683-11c166866e32n%40googlegroups.com.

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3b55a8cd-2098-4484-871b-4984b76bd9f0n%40googlegroups.com.