Skip to content

Instantly share code, notes, and snippets.

@jessepav
jessepav / 00-Vim9-Python.md
Last active September 16, 2024 14:19
Vim9 Bridge for Remote Python Plugin

This Gist demonstrates how to bridge an external Python process to Vim9 using jobs and channels (this is in contrast to the if_py Python interface, which runs a Python interpreter within the Vim process).

Running a language interpreter separately brings more flexibility – for instance, you can easily run Python from a virtualenv, or run a version of Python other than the one against which Vim was built – and avoids the fragility that sometimes creeps into the built-in language bindings as the Python C API changes.

@jessepav
jessepav / 00-Process-HTML-CSS-Footnotes.md
Last active January 23, 2021 19:18
Ant Task for Using Pandoc Block-Level Footnotes in CSS Paged Media (i.e. HTML/CSS → PDF conversion)

<process-footnotes> Task

The motivation for this task is to allow block-level elements within footnote content for use with CSS paged media (eg. transforming HTML to PDF with Prince or Antenna House Formatter). Or more explicitly, to automatically process Pandoc-generated HTML – which can include block-level footnote content – so that it can be converted to PDF with proper footnotes.

The basic problem is this: CSS paged media footnotes are created by adding the float: footnote property to an element, at which point it will be moved out of the normal flow