@pandoc@fosstodon.org
@pandoc@fosstodon.org avatar

pandoc

@pandoc@fosstodon.org

Tips and news about pandoc, the universal document converter. Toots by https://scholar.social/@tarleb.

All posts by this account are licensed under CC BY 4.0.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

pandoc, to random
@pandoc@fosstodon.org avatar

Below is a custom writer that behaves like a built-in writer. It can serve as the basis for a modified writer, e.g., one with a programmatically modified template.
https://pandoc.org/custom-writers

local format = 'commonmark'

Extensions = pandoc.format.extensions(format)
Template = pandoc.template.default(format)
Writer = function (doc, opts)
return pandoc.write(doc, {format=format, extensions=opts.extensions}, opts)
end

pandoc, to random
@pandoc@fosstodon.org avatar

Writing one sentence per line can make collaborating via source control systems (like git) more convenient. Here's a that does that:
https://gist.github.com/tarleb/ef395339d4ce8d940cae0c48e5de9e82

pandoc, to opensource
@pandoc@fosstodon.org avatar

It's nice to see a company with a clear commitment to software (and democracy) be successful in the space. Congratulations to your 25th company anniversary, @letexml!

pandoc, to random
@pandoc@fosstodon.org avatar

๐Ÿ†• release of section-bibliographies v1.0.0, a that allows to produce separate bibliographies for each chapter or section. Works with , too.
The new version comes with a number of performance improvements, as well as additional customization options.
https://github.com/pandoc-ext/section-bibliographies

pandoc, to typst
@pandoc@fosstodon.org avatar

See https://pandoc.org/typst-property-output for more info about the new property support introduced in 3.2.

pandoc,
@pandoc@fosstodon.org avatar

@dginev Style conversions are out of scope for pandoc. But see the Lua filter example on how to map properties.

pandoc, to random
@pandoc@fosstodon.org avatar

๐Ÿ†• pandoc 3.2 is out!
Most significant changes:

  • Typst output became more custimizable.
  • custom-style started to work with ODT.
  • Better Lua support for logging, image handling.

Find the full release notes here:
https://github.com/jgm/pandoc/releases/tag/3.2

Many thanks to all who contributed! ๐Ÿซถ

pandoc,
@pandoc@fosstodon.org avatar

On a personal note: this release also marks (ยฑ4 days) the 10 year anniversary of the release that contained my first contributions. That was pandoc 1.12.4, released May 7th, 2014.
I'm happy that pandoc is still going strong. Many thanks to all users, contributors, and the community as a whole for making this such a pleasant experience!

jfdm, to orgmode
@jfdm@discuss.systems avatar

It always annoys me that both and do not appear to have a 'clean'/plain flag for generating output.

I want 'plain' LaTeX and HTML with no additions or custom elements...no \tightlist in list environments, nor <div> around sections. Just plain unadulterated markup, that is all...

pandoc,
@pandoc@fosstodon.org avatar

@jfdm I can relate, but the decision was made a while ago not to support this: https://github.com/jgm/pandoc/issues/8249
However, more cases like \tightlist have been creeping in recently, so it might be worth to bring it up again in a discussion.
https://github.com/jgm/pandoc/discussions
Specifically for tightlists: there's a StackOverflow Q&A about the opposite problem, but the solution could be adjusted to do the reverse, i.e. remove all tight lists by switching Plain and Para. https://stackoverflow.com/q/57940840/2425163

pandoc,
@pandoc@fosstodon.org avatar

@jfdm One option for academic writing could be . It uses pandoc under the hood, but has scientific publishing set as one of the goals. See, e.g., https://quarto.org/docs/extensions/listing-journals.html
Any LaTeX acceptance problems would be treated as a bug there, I'd assume.

pandoc, to random
@pandoc@fosstodon.org avatar

@mxp wrote a small that helps to preserve DOI info when converting from to .
https://gist.github.com/mxpiotrowski/0e7d26980db8554b62ca61a476adc958

pandoc, to random
@pandoc@fosstodon.org avatar

The images had been experiencing some bit-rot, but have been updated and are back in service now. The images include the latest release (3.1.13) and the current development version. They continue to be available in the four flavors minimal, core, latex, and extra.
images now ship with 2024.

https://hub.docker.com/r/pandoc/minimal
https://hub.docker.com/r/pandoc/core
https://hub.docker.com/r/pandoc/latex
https://hub.docker.com/r/pandoc/extra

pandoc, to random
@pandoc@fosstodon.org avatar

Small example of how the subsystem can be used to query 's capabilities:
The default binary allows to --list-extensions of a given format, but there is no analogous option to list all formats which work with a given extension, so here is a pandoc Lua program that provides this functionality: https://gist.github.com/tarleb/ef63974ab18d92acf0eb40180d832c48

pandoc, to random
@pandoc@fosstodon.org avatar

Support for alert-boxes was added in pandoc 3.1.10.

> [!INFO]
> This is an informational message.

Note, however, that writer (i.e., rendering) support for this is limited, and that the alert extension works with CommonMark, but not with pandoc-flavored Markdown.

The syntax has been made popular by GitHub: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts

pandoc, to accessibility
@pandoc@fosstodon.org avatar

Starting with version 3.1.12, -generated ๏ปฟs conform to the EU Accessibility Act. https://www.w3.org/TR/epub-a11y-eaa-mapping/

Relevant metadata fields are listed in the "EPUB metadata" section of the manual: https://pandoc.org/MANUAL#epub-metadata.

pandoc, (edited ) to random
@pandoc@fosstodon.org avatar

The default LaTeX template in v3.1.12 and later supports font fallbacks. The fallback is used if a glyph cannot be found in a font.
Example use-case: get color emojis in .


mainfontfallback:

  • Noto Color Emoji

๐ŸŒป

Requires as the PDF engine (i.e., pandoc --pdf-engine=lualatex ...).
Alternatively, try 'NotoColorEmoji:mode=harf'.

pandoc,
@pandoc@fosstodon.org avatar

@tennoseremel Thanks, you're right, of course!

pandoc, to random
@pandoc@fosstodon.org avatar

A spam attack on the pandoc-discuss mailing list hosted on Google Groups caused a suspension of the entire list. Google is not responding to requests to re-enable the list.
For the time being, please use the GitHub Discussion feature. Whether this will become a permanent solution is currently not clear.
https://github.com/jgm/pandoc/discussions/

pandoc,
@pandoc@fosstodon.org avatar

This also means that the archive with 15 years worth of mail has been lost, together with the knowledge that was available through those mails.
https://github.com/jgm/pandoc/issues/9250

pandoc,
@pandoc@fosstodon.org avatar

@amoroso I'm not aware of the exact steps that were taken, but there have been multiple attempts to rectify this situation. See also https://github.com/jgm/pandoc/issues/9250

pandoc,
@pandoc@fosstodon.org avatar

@hvwaldow Couldn't agree more. I'd personally prefer Discourse, but that's expensive (either in terms of time to be invested, or in money to be spent).

pandoc,
@pandoc@fosstodon.org avatar

@amoroso Thank you, I'll forward this information to John, who's the list maintainer.

pandoc,
@pandoc@fosstodon.org avatar

@leah managed to restore most pandoc-discuss mails and made them available at https://inbox.vuxu.org/pandoc-discuss.
Thank you, Leah!

pandoc, to random
@pandoc@fosstodon.org avatar

๐Ÿ†• pandoc 3.1.9 has been released.

A change worth highlighting is the improved support for the BITS format, which is an extension of JATS.
https://jats.nlm.nih.gov/extensions/bits/

https://github.com/jgm/pandoc/releases/tag/3.1.9

pandoc, to markdown
@pandoc@fosstodon.org avatar

has two kinds of :

inline links

and

reference links

The former is the default when producing Markdown, but the latter can be generated by calling pandoc with the --reference-links option. Control the placement of reference lists with --reference-location: either after each block, after each section, or all together at the very end of the document.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • โ€ข
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • Durango
  • megavids
  • InstantRegret
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • lostlight
  • All magazines