#!/usr/bin/env lua

-- Remove footnotes from headers to pass epub validation for Play Books
Header = function (element)
  return pandoc.walk_block(element, {
      Note = function (element)
        return {}
      end
    })
end

-- Remove footnotes from headers to pass epub validation for Play Books
Header = function (element)
  return pandoc.walk_block(element, {
      Note = function (element)
        return {}
      end
    })
end

Update lua-filter format for Pandoc 2.6
Update lua-filter format for Pandoc 2.6
