Skip to content

Conversation

@mlmbl
Copy link

@mlmbl mlmbl commented Aug 4, 2025

Summary of Changes

This pull request introduces support for specifying input format extensions for Pandoc when using ox-pandoc.

  • Introduced a new customizable variable: pandoc-input-extensions.
  • Added support for file-local settings via #+PANDOC_INPUT_EXTENSIONS: in Org files.
  • Modified org-pandoc-run and org-pandoc-template to automatically append these extensions to the -f flag during export.

Motivation

The current implementation of ox-pandoc hardcodes the input format as org, which prevents users from specifying any format extensions. This is a significant limitation for users who require fine-tuned input handling.

This is particularly problematic for users writing in CJK languages, who often need to enable extensions like +east_asian_line_breaks. This enhancement allows users to enable such extensions, making ox-pandoc more flexible and practical for a broader range of use cases.

mlmbl added 2 commits July 31, 2025 14:02
…sian_line_breaks)

- Introduced customizable variable `pandoc-input-extensions` to allow users
  to specify input format extensions appended to "org" (e.g. `+east_asian_line_breaks`).
- Added support for file-local overrides via `#+PANDOC_INPUT_EXTENSIONS:` keyword.
- Updated export logic to pass extended format string via the `-f` flag to Pandoc.
- Documented the change in README under "History and People".
- Added `.gitignore` to exclude compiled Emacs Lisp files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant