<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pandoc/src/Text/Pandoc/Lua/Marshaling, branch master</title>
<subtitle>Conversion between markup formats</subtitle>
<id>https://git.pashev.ru/pandoc/atom?h=master</id>
<link rel='self' href='https://git.pashev.ru/pandoc/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/pandoc/'/>
<updated>2021-11-28T01:08:01Z</updated>
<entry>
<title>Lua: use package pandoc-lua-marshal (#7719)</title>
<updated>2021-11-28T01:08:01Z</updated>
<author>
<name>Albert Krewinkel</name>
<email>albert@zeitkraut.de</email>
</author>
<published>2021-11-28T01:08:01Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/pandoc/commit/?id=3692a1d1e83703fbf235214f2838cd92683c625c'/>
<id>urn:sha1:3692a1d1e83703fbf235214f2838cd92683c625c</id>
<content type='text'>
The marshaling functions for pandoc's AST are extracted into a separate
package. The package comes with a number of changes:

  - Pandoc's List module was rewritten in C, thereby improving error
    messages.

  - Lists of `Block` and `Inline` elements are marshaled using the new
    list types `Blocks` and `Inlines`, respectively. These types
    currently behave identical to the generic List type, but give better
    error messages. This also opens up the possibility of adding
    element-specific methods to these lists in the future.

  - Elements of type `MetaValue` are no longer pushed as values which
    have `.t` and `.tag` properties. This was already true for
    `MetaString` and `MetaBool` values, which are still marshaled as Lua
    strings and booleans, respectively. Affected values:

      + `MetaBlocks` values are marshaled as a `Blocks` list;

      + `MetaInlines` values are marshaled as a `Inlines` list;

      + `MetaList` values are marshaled as a generic pandoc `List`s.

      + `MetaMap` values are marshaled as plain tables and no longer
        given any metatable.

  - The test suite for marshaled objects and their constructors has
    been extended and improved.

  - A bug in Citation objects, where setting a citation's suffix
    modified it's prefix, has been fixed.</content>
</entry>
<entry>
<title>Lua: allow single elements as singleton MetaBlocks/MetaInlines</title>
<updated>2021-11-24T15:54:12Z</updated>
<author>
<name>Albert Krewinkel</name>
<email>albert@zeitkraut.de</email>
</author>
<published>2021-11-24T15:41:52Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/pandoc/commit/?id=a8638894ab698cc0e49757a2732e383b652834bc'/>
<id>urn:sha1:a8638894ab698cc0e49757a2732e383b652834bc</id>
<content type='text'>
Single elements should always be treated as singleton lists in the Lua
subsystem.
</content>
</entry>
<entry>
<title>Lua: add function `pandoc.utils.text` (#7710)</title>
<updated>2021-11-23T17:32:53Z</updated>
<author>
<name>Albert Krewinkel</name>
<email>albert@zeitkraut.de</email>
</author>
<published>2021-11-23T17:32:53Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/pandoc/commit/?id=bffd74323cfd91f5c44ca34e09633247d1d28954'/>
<id>urn:sha1:bffd74323cfd91f5c44ca34e09633247d1d28954</id>
<content type='text'>
The function converts a string to `Inlines`, treating interword spaces
as `Space`s or `SoftBreak`s. If you want a `Str` with literal spaces,
use `pandoc.Str`.

Closes: #7709</content>
</entry>
<entry>
<title>Lua: split strings into words when treating them as Inline list (#7712)</title>
<updated>2021-11-23T17:30:48Z</updated>
<author>
<name>Albert Krewinkel</name>
<email>albert@zeitkraut.de</email>
</author>
<published>2021-11-23T17:30:48Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/pandoc/commit/?id=0c0945b93c2ae502c0629d93e9ad520dbe17c625'/>
<id>urn:sha1:0c0945b93c2ae502c0629d93e9ad520dbe17c625</id>
<content type='text'>
Using a Lua string where a list of inlines is expected will cause the
string to be split into words, replacing spaces and tabs into
`pandoc.Space()` elements and newlines into `pandoc.SoftBreak()`.

The previous behavior was to treat the string `s` as `{pandoc.Str(s)}`.
The old behavior can be recovered by wrapping the string into a table
`{s}`.</content>
</entry>
<entry>
<title>Lua: add Pushable instance for ReaderOptions</title>
<updated>2021-11-06T16:58:44Z</updated>
<author>
<name>Albert Krewinkel</name>
<email>albert@zeitkraut.de</email>
</author>
<published>2021-11-06T16:57:10Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/pandoc/commit/?id=4a3b3b1ac6b8dc0770fd1bbebb297c160d6ee57b'/>
<id>urn:sha1:4a3b3b1ac6b8dc0770fd1bbebb297c160d6ee57b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Lua: allow to pass custom reader options to `pandoc.read`</title>
<updated>2021-11-06T16:04:29Z</updated>
<author>
<name>Albert Krewinkel</name>
<email>albert@zeitkraut.de</email>
</author>
<published>2021-11-06T10:00:26Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/pandoc/commit/?id=6b462e59332242c18ea38a721ae672b88f33d621'/>
<id>urn:sha1:6b462e59332242c18ea38a721ae672b88f33d621</id>
<content type='text'>
Reader options can now be passed as an optional third argument to
`pandoc.read`. The object can either be a table or a ReaderOptions value
like `PANDOC_READER_OPTIONS`. Creating new ReaderOptions objects is
possible through the new constructor `pandoc.ReaderOptions`.

Closes: #7656
</content>
</entry>
<entry>
<title>Lua: display Pandoc values using their native Haskell representation</title>
<updated>2021-11-05T12:11:02Z</updated>
<author>
<name>Albert Krewinkel</name>
<email>albert@zeitkraut.de</email>
</author>
<published>2021-11-05T12:11:02Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/pandoc/commit/?id=ebdb39b3b4d297ea2356063d48f5e472e8ffa9d3'/>
<id>urn:sha1:ebdb39b3b4d297ea2356063d48f5e472e8ffa9d3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Lua: re-add `content` property to Strikeout elements</title>
<updated>2021-11-02T20:22:59Z</updated>
<author>
<name>Albert Krewinkel</name>
<email>albert@zeitkraut.de</email>
</author>
<published>2021-11-02T20:22:59Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/pandoc/commit/?id=421fd736d4ee11815f1b8acc123c1d0f9e9136c7'/>
<id>urn:sha1:421fd736d4ee11815f1b8acc123c1d0f9e9136c7</id>
<content type='text'>
Fixes a regression introduced in 2.15.
</content>
</entry>
<entry>
<title>Lua: be more forgiving when retrieving the Image `caption` property</title>
<updated>2021-11-02T16:40:07Z</updated>
<author>
<name>Albert Krewinkel</name>
<email>albert@zeitkraut.de</email>
</author>
<published>2021-11-02T16:38:49Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/pandoc/commit/?id=cce49c5d4b7429ca3455d356dff59f404f7e6d4b'/>
<id>urn:sha1:cce49c5d4b7429ca3455d356dff59f404f7e6d4b</id>
<content type='text'>
Fixes a regression introduced in 2.15.
</content>
</entry>
<entry>
<title>Lua: display Attr values using their native Haskell representation</title>
<updated>2021-11-02T16:25:47Z</updated>
<author>
<name>Albert Krewinkel</name>
<email>albert@zeitkraut.de</email>
</author>
<published>2021-11-02T16:25:47Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/pandoc/commit/?id=b26f950ccaa0a1a973b282a516bd80295536feb2'/>
<id>urn:sha1:b26f950ccaa0a1a973b282a516bd80295536feb2</id>
<content type='text'>
</content>
</entry>
</feed>
