eleventy-plugin-fountain
v1.0.0
Published
An Eleventy plugin for processing Fountain screenplay format files
Maintainers
Readme
eleventy-plugin-fountain
An Eleventy plugin for processing Fountain screenplay format files.
Installation
npm install eleventy-plugin-fountainUsage
In your .eleventy.js config file:
import eleventyPluginFountain from 'eleventy-plugin-fountain';
export default function(eleventyConfig) {
eleventyConfig.addPlugin(eleventyPluginFountain);
return {
// your config
};
}Options
You can customize the plugin behavior by passing options:
eleventyConfig.addPlugin(eleventyPluginFountain, {
// Custom tags for fountain notes (comments)
noteStartTag: '<span class="fountain-note">',
noteEndTag: '</span>',
// Custom template format name (default: 'fountain')
templateFormat: 'fountain'
});What it does
This plugin:
- Registers
.fountainfiles as a template format in Eleventy - Parses Fountain files using the
fountain-jslibrary - Converts Fountain comments (
<!-- -->) to HTML spans with the classnote - Outputs the rendered HTML for use in your Eleventy site
Fountain Format
Fountain is a simple markup syntax for writing screenplays. Learn more at fountain.io.
License
MIT
