MKDoc-Text-Structured
view release on metacpan or search on metacpan
lib/MKDoc/Text/Structured.pm view on Meta::CPAN
* Headlines work too
==================
I can write *paragraphs within lists*.
And even _pre-formatted text_!
- Also, I can have sub-lists
- That's no problem
- Notice that '*' and '-' have the same meaning.
It's just syntaxic sugar, really :-)
Would become:
<ul><li><p>An item</p></li>
<li><p>Another item</p></li>
<li><h2>Headlines work too</h2>
<p>I can write <strong>paragraphs within lists</strong>.</p>
<pre>And even <em>pre-formatted text</em>!</pre>
<ul><li><p>Also, I can have sub-lists</p></li>
<li><p>That's no problem</p></li>
<li><p>Notice that '*' and '-' have the same meaning.
It's just syntaxic sugar, really :-)</p></li></ul></li></ul>
=head2 OL, LI
Un-ordered lists and unordered lists can be constructed and nested:
The text:
1. An item
2. Another item
3. Headlines work too
==================
* An un-ordered list
* Can be nested
* It should all work nicely.
Would become:
<ol><li><p>An item</p></li>
<li><p>Another item</p></li>
<li><h2>Headlines work too</h2>
<ul><li><p>An un-ordered list</p></li>
<li><p>Can be nested</p></li>
<li><p>It should all work nicely.</p></li></ul></li></ol>
=head1 Hyperlinks
This module uses L<URI::Find> to locate URIs such as http://mkdoc.com/ and turn
them into clickable links.
Add rel="nofollow" attributes to <a> tags like so:
local $MKDoc::Text::Structured::Inline::NoFollow = 1;
Additionally, once the XHTML fragment is produced, you could use
L<MKDoc::XML::Tagger> to hyperlink it against a glossary of hyperlinks.
=head1 Smilies
Basic smilies such as :-) and :-( are wrapped in a CSS class:
<span class="smiley-happy">:-)</span>
<span class="smiley-sad">:-(</span>
=head1 Long Words
Long words are split up into fragments separated by spaces if the length
exceeds a 78 character default.
Change the default length using a package variable:
local $MKDoc::Text::Structured::Inline::LongestWord = 12;
Disable this fuctionality by setting a value of 0.
=head1 AUTHOR
Copyright 2003 - MKDoc Holdings Ltd.
Author: Jean-Michel Hiver
This module is free software and is distributed under the same license as Perl
itself. Use it at your own risk.
=head1 SEE ALSO
MKDoc: http://www.mkdoc.com/
Help us open-source MKDoc. Join the mkdoc-modules mailing list:
mkdoc-modules@lists.webarch.co.uk
=cut
( run in 2.296 seconds using v1.01-cache-2.11-cpan-119454b85a5 )