diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2018-01-07 11:22:53 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2018-01-07 11:22:53 +0100 |
commit | 458e633bc40e1dc1dd2547fe1cc77677599c26d5 (patch) | |
tree | b1c10e02d65a1a364580c5b791acf210f3e4a62a /src/Text/Pandoc/Lua/Module/Pandoc.hs | |
parent | b70079fbfa73dff4a3d94de1aa3d8b804fc9520b (diff) | |
download | pandoc-458e633bc40e1dc1dd2547fe1cc77677599c26d5.tar.gz |
data/pandoc.lua: make all types subtypes of AstElement
*Pandoc*, *Meta*, and *Citation* were just plain functions and did not
set a metatable on the returned value, which made it difficult to amend
objects of these types with new behavior. They are now subtypes of
AstElement, meaning that all their objects can gain new features when a
method is added to the behavior object (e.g., `pandoc.Pandoc.behavior`).
Diffstat (limited to 'src/Text/Pandoc/Lua/Module/Pandoc.hs')
0 files changed, 0 insertions, 0 deletions