If it works, it works:
TITLE=$(pandoc -t rst f.md -o /dev/null \
-L <(echo "function Meta(m) print(pandoc.utils.stringify(m.title)) end")
)
Works for no quotes and no leading spaces:
#!/usr/bin/env python | |
''' | |
Send an multipart email with HTML and plain text alternatives. The message | |
should be constructed as a plain-text file of the following format: | |
From: Your Name <[email protected]> | |
To: Recipient One <[email protected]> | |
Subject: Your subject line | |
--- |
If it works, it works:
TITLE=$(pandoc -t rst f.md -o /dev/null \
-L <(echo "function Meta(m) print(pandoc.utils.stringify(m.title)) end")
)
Works for no quotes and no leading spaces: