Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ctrlo/Markdown-ODF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

7 Commits
t
t

Repository files navigation

NAME

Markdown::ODF - Create ODF documents from Markdown

SYNOPSIS

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**");

DESCRIPTION

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.

METHODS

odf

Returns the ODF::lpOD object used for the ODF document.

add_markdown($markdown)

Add markdown content as a paragraph to the current ODF page.

current_element

Returns the most recent ODF::lpOD::Element that has been written to the document.

append_element($element)

Add a ODF::lpOD::Element to the current document and update "current_element()".

LICENSE AND COPYRIGHT

Copyright (c) 2022 Amtivo Group

This program is free software, licensed under the MIT licence.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • Perl 100.0%

AltStyle によって変換されたページ (->オリジナル) /