Skip to content

Minimal working example of Lilypond lua filter with markdown  #167

@dalbandea

Description

@dalbandea

Hi, I'm trying to use the lilypond filter to try to convert lilypond code inside a .md file into embedded images.

I'm tryind to test it with a simple example, but I cannot make it to work. I downloaded lilypond.lua into my working directory and this is my file test.md

# Markdown file

Hi

\version "2.20.0"
{
  c' e' g' e'
}

And I call pandoc using pandoc --lua-filter=lilypond.lua test.md -o test.pdf. The error mesage is

Error producing PDF.
! Undefined control sequence.
l.60 \version

I also tried removing the \version line. Then it compiles and generated a pdf, but without image. My pandoc version is 2.11.4, and mi lilypond version si 2.20.0, running on Ubuntu 20.04.

Sorry if the question is stupid (I'm a newbie on both pandoc and lilypond), but I read lilypond's filter README.md and I cannot figure it out. Could you provide a minimal working example?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions