Markdown::ODF - Create ODF documents from Markdown
use Markdown::ODF;
my $convert = Markdown::ODF->new;
# Optionally use PDF document directly
my $odf = $convert->odf;
my $meta = $odf->meta;
$meta->set_title("Title for converted document");
# Optionally set default paragraph style for document
my $default = odf_create_style(
'paragraph',
area => 'text',
language => 'en',
country => 'GB',
size => '11pt',
font => 'Arial',
);
$odf->insert_style($default, default => TRUE);
# Add content
$convert->add_markdown("My markdown with some **bold text**");
This module converts Markdown to ODF text documents. The ODF document is accessed using the "odf" method which returns a ODF::lpOD object allowing further manipulation of the document.
Returns the ODF::lpOD object used for the ODF document.
Add markdown content as a paragraph to the current ODF page.
Returns the most recent ODF::lpOD::Element that has been written to the document.
Add a ODF::lpOD::Element to the current document and update "current_element()".
Copyright (c) 2022 Amtivo Group
This program is free software, licensed under the MIT licence.