public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* ANN: pandoc 2.9.2
@ 2020-02-16 15:44 John MacFarlane
       [not found] ` <m2mu9ir0yz.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2020-02-16 15:44 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw,
	pandoc-announce-/JYPxA39Uh5TLH3MbocFFw


I'm pleased to announce the release of pandoc 2.9.2,
available in the usual places:

Binary packages & changelog:
  https://github.com/jgm/pandoc/releases/tag/2.9.2
Source & API documentation:
  http://hackage.haskell.org/package/pandoc-2.9.2

Some highlights:

* csv is now an input format. You can use pandoc to convert
  CSV data into a simple table in any target format pandoc
  supports.

* Instead of a single jats output format, we now have
  jats_archiving, jats_publishing, and jats_articleauthoring
  for different tag sets.  The old jats defaults to
  jats_archiving.

* It is now much easier to create Lua filters that filter element
  lists (e.g., removing spaces before citations).

* 'bibliography' and 'csl' fields may now be used in defaults files.

* Fixed some regressions from 2.7.x, including duplicate class names
  and attributes, spurious dots in markdown_mmd metadata output,
  columns in beamer slides, tight lists in docx output, and a change in the
  behavior of reveal.js when there are more than two levels of nesting.

* Lots of bug fixes and minor improvements.

API changes:

* Added Text.Pandoc.Readers.CSV, exporting readCSV.

* Added new functions writeJatsArchiving, writeJatsPublishing,
  and writeJatsArticleAuthoring in Text.Pandoc.Writers.JATS.

* Export html5Attributes, html4Attributes, rdfaAttributes from
  Text.Pandoc.XML.

* Add FilterCompleted and RunningFilter constructors to Log
  Message in Text.Pandoc.Logging.

Thanks to everyone who contributed, and especially Albert Krewinkel
and new contributors Joseph C. Sible and Ethan Riley.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ANN: pandoc 2.9.2
       [not found] ` <m2mu9ir0yz.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2020-02-17  9:52   ` Priv.-Doz. Dr. Maria Shinoto
  2020-02-17 12:31   ` Lua list traversal (was: ANN: pandoc 2.9.2) BPJ
  1 sibling, 0 replies; 3+ messages in thread
From: Priv.-Doz. Dr. Maria Shinoto @ 2020-02-17  9:52 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

This sounds great. The .csv import feature will be so useful, and bibliography and .csl in default files is so convenient. 

A big Thanks to all contributors from a mere user!


> Am 17.02.2020 um 00:44 schrieb John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>:
> 
> 
> I'm pleased to announce the release of pandoc 2.9.2,
> available in the usual places:
> 
> Binary packages & changelog:
>  https://github.com/jgm/pandoc/releases/tag/2.9.2
> Source & API documentation:
>  http://hackage.haskell.org/package/pandoc-2.9.2
> 
> Some highlights:
> 
> * csv is now an input format. You can use pandoc to convert
>  CSV data into a simple table in any target format pandoc
>  supports.
> 
> * Instead of a single jats output format, we now have
>  jats_archiving, jats_publishing, and jats_articleauthoring
>  for different tag sets.  The old jats defaults to
>  jats_archiving.
> 
> * It is now much easier to create Lua filters that filter element
>  lists (e.g., removing spaces before citations).
> 
> * 'bibliography' and 'csl' fields may now be used in defaults files.
> 
> * Fixed some regressions from 2.7.x, including duplicate class names
>  and attributes, spurious dots in markdown_mmd metadata output,
>  columns in beamer slides, tight lists in docx output, and a change in the
>  behavior of reveal.js when there are more than two levels of nesting.
> 
> * Lots of bug fixes and minor improvements.
> 
> API changes:
> 
> * Added Text.Pandoc.Readers.CSV, exporting readCSV.
> 
> * Added new functions writeJatsArchiving, writeJatsPublishing,
>  and writeJatsArticleAuthoring in Text.Pandoc.Writers.JATS.
> 
> * Export html5Attributes, html4Attributes, rdfaAttributes from
>  Text.Pandoc.XML.
> 
> * Add FilterCompleted and RunningFilter constructors to Log
>  Message in Text.Pandoc.Logging.
> 
> Thanks to everyone who contributed, and especially Albert Krewinkel
> and new contributors Joseph C. Sible and Ethan Riley.
> 
> -- 
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m2mu9ir0yz.fsf%40johnmacfarlane.net.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Lua list traversal (was: ANN: pandoc 2.9.2)
       [not found] ` <m2mu9ir0yz.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  2020-02-17  9:52   ` Priv.-Doz. Dr. Maria Shinoto
@ 2020-02-17 12:31   ` BPJ
  1 sibling, 0 replies; 3+ messages in thread
From: BPJ @ 2020-02-17 12:31 UTC (permalink / raw)
  To: pandoc-discuss

[-- Attachment #1: Type: text/plain, Size: 3561 bytes --]

The Lua list traversing feature is very convenient, but it would be even
more convenient if filter functions were passed the parent and closest
siblings of the current element as extra arguments:

``````lua
function Space (elem, parent, prev, next)
  return 'Cite' == next.t and {} or elem
end
``````

With each of arguments #2–4 being nils if the current element doesn't have
one of those relatives, i.e. Pandoc element, first/last element in a list.

I have no idea how hard this would be to implement or how much overhead it
would add, but arguably it would make most use cases where you want to know
relatives of an element easy to handle. That's not to say that getting the
whole list of elements can't be useful, and it would be convenient if that
function too were passed the element containing the list and its nearest
siblings, and perhaps even its parent.






Den sön 16 feb. 2020 16:45John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> skrev:

>
> I'm pleased to announce the release of pandoc 2.9.2,
> available in the usual places:
>
> Binary packages & changelog:
>   https://github.com/jgm/pandoc/releases/tag/2.9.2
> Source & API documentation:
>   http://hackage.haskell.org/package/pandoc-2.9.2
>
> Some highlights:
>
> * csv is now an input format. You can use pandoc to convert
>   CSV data into a simple table in any target format pandoc
>   supports.
>
> * Instead of a single jats output format, we now have
>   jats_archiving, jats_publishing, and jats_articleauthoring
>   for different tag sets.  The old jats defaults to
>   jats_archiving.
>
> * It is now much easier to create Lua filters that filter element
>   lists (e.g., removing spaces before citations).
>
> * 'bibliography' and 'csl' fields may now be used in defaults files.
>
> * Fixed some regressions from 2.7.x, including duplicate class names
>   and attributes, spurious dots in markdown_mmd metadata output,
>   columns in beamer slides, tight lists in docx output, and a change in the
>   behavior of reveal.js when there are more than two levels of nesting.
>
> * Lots of bug fixes and minor improvements.
>
> API changes:
>
> * Added Text.Pandoc.Readers.CSV, exporting readCSV.
>
> * Added new functions writeJatsArchiving, writeJatsPublishing,
>   and writeJatsArticleAuthoring in Text.Pandoc.Writers.JATS.
>
> * Export html5Attributes, html4Attributes, rdfaAttributes from
>   Text.Pandoc.XML.
>
> * Add FilterCompleted and RunningFilter constructors to Log
>   Message in Text.Pandoc.Logging.
>
> Thanks to everyone who contributed, and especially Albert Krewinkel
> and new contributors Joseph C. Sible and Ethan Riley.
>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/m2mu9ir0yz.fsf%40johnmacfarlane.net
> .
>

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhAM_TCUom3Ycutpp%3DMr93rCcnMiSpFUzYr_6B8X-TA--A%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 5085 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-17 12:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-16 15:44 ANN: pandoc 2.9.2 John MacFarlane
     [not found] ` <m2mu9ir0yz.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-02-17  9:52   ` Priv.-Doz. Dr. Maria Shinoto
2020-02-17 12:31   ` Lua list traversal (was: ANN: pandoc 2.9.2) BPJ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).