pandoc / lua-filters

A collection of lua filters for pandoc
MIT License
611 stars 166 forks source link

abstract-to-meta filter corrupts lists #94

Closed ghost closed 4 years ago

ghost commented 4 years ago

Dear all,

Thank you very much for the filter collection. They can simplify our input files. I noticed though that the filter abstract-to-meta does not copy over lists.

Best,
Robert

Minimal example

Command for testing: pandoc --atx-header -L abstract-to-meta.lua -s -t markdown input.md > output.md

input.md

# Abstract

Abstract text.

- one
- two

# Next Section

Other text.

output.md

---
abstract: |
  Abstract text.

  one

  two

  -   
  -   
---

# Next Section

Other text.
jgm commented 4 years ago

@tarleb

tarleb commented 4 years ago

Thanks for the report.

tarleb commented 4 years ago

Just fyi: I believe that this problem was introduced with the release of pandoc 2.8, which features a new element traversal order. The previous code relied on the old traversal order.