r46233 - in /branches/upstream/libtext-multimarkdown-perl/current: ./ lib/Text/ t/Text-MultiMarkdown.mdtest/ t/docs-multimarkdown-todo/
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Fri Oct 23 02:16:59 UTC 2009
Author: jawnsy-guest
Date: Fri Oct 23 02:16:46 2009
New Revision: 46233
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=46233
Log:
[svn-upgrade] Integrating new upstream version, libtext-multimarkdown-perl (1.0.30)
Added:
branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/Citations.text
branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/Citations.xhtml
branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/XHTML_Headers.text
branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/XHTML_Headers.xhtml
Removed:
branches/upstream/libtext-multimarkdown-perl/current/t/docs-multimarkdown-todo/Citations.text
branches/upstream/libtext-multimarkdown-perl/current/t/docs-multimarkdown-todo/Citations.xhtml
Modified:
branches/upstream/libtext-multimarkdown-perl/current/Changes
branches/upstream/libtext-multimarkdown-perl/current/MANIFEST
branches/upstream/libtext-multimarkdown-perl/current/META.yml
branches/upstream/libtext-multimarkdown-perl/current/lib/Text/MultiMarkdown.pm
Modified: branches/upstream/libtext-multimarkdown-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtext-multimarkdown-perl/current/Changes?rev=46233&op=diff
==============================================================================
--- branches/upstream/libtext-multimarkdown-perl/current/Changes (original)
+++ branches/upstream/libtext-multimarkdown-perl/current/Changes Fri Oct 23 02:16:46 2009
@@ -1,163 +1,50 @@
This file documents the revision history for Perl extension Text::MultiMarkdown.
-1.0.0 2006-08-22T00:00:00
- - first release
-
-1.0.1 2006-10-20T00:00:00
- - include patch from Uwe Voelker to allow setting of options in
- markdown(); also added a test case from Uwe. Thanks, Uwe!
- Also updated changelog references in POD somewhat.
-
-1.0.2 2007-11-24T14:00:00
- - move to Module::Install and clean various things up, mostly to make
- CPANTS happy.
-
-1.0.3 2007-11-24T20:22:00
- - way to keep me accountable, CPANTESTERS! Maybe I shouldn't have
- Test::Pod::Coverage enabled unless it actually checks out. Added some
- fairly useless stubbed METHODS to POD and moved POD around a bit.
-
-1.0.4 2008-01-02T02:03:50
- - Refactor so that the processor instance has the same set of
- persistent options as on the ->markdown method itself.
- - Change all functions to be instance methods, moved a chunk of the
- global data to the instance. The rest will follow shortly.
- - The test suite now tests a reasonable set of the Markdown and
- MultiMarkdown syntaxes.
- - All known options and metadata keys have been documented.
-
-1.0.5 2008-01-04T18:07:57
- - Add Markdown and MultiMarkdown test suites.
- - Fix a big bug introduced in 1.0.4 in citations
- - Fix footnotes (and other small things) to match the test suite
-
-1.0.6 2008-01-06T13:36:00
- - Merge latest Markdown test suite I can find, and make it all pass,
- pulling in code from Markdown 1.0.2b8. Things fixed:
- - Inline HTML
- - Lists
- - Metadata skipping by leading line breaks
- - 3rd form of links
- - Implement features to suppress id attributes in <img> and <hX> tags
- to be able to act more like original Markdown - now almost ready to
- steal Text::Markdown (would want to turn off tables / citations and
- bibliography for that)
- - Move almost all the global variables into instance data.
- - Fix unicode issues from CPAN.org's RT#27482
- - Remove call to srand, it's not smart to do this more than once.
-
-1.0.7 2008-01-07T16:31:00
- - Encode isn't in core in all perls, add it to Makefile.PL
-
-1.0.8 2008-01-22T19:20:00
- - Do not encode amps or angle brackets in HTML comments + test case.
- - Do not emit title attribute in <img> tags unless we have contents
- for it. This was a 'feature' of original Markdown where I've decided
- to go with what php-markdown does (tests updated).
- - Added php-markdown tests (most/all of the regular tests pass except
- the email obfu one).
- - Added php-markdown extra tests (all fail).
- - Added python markdown tests (mostly pass, but marked broken).
- - Add a way of stopping inline HTML blocks from suppressing markdown
- processing. Feature request from #catalyst-dev
-
-1.0.9 2008-01-22T20:28:00
- - Ship non-broken dist at CPAN (oops, rushing!)
-
-1.0.10 2008-01-23T15:40:00
- - Fix bug with links processing in HTML blocks.
-
-1.0.11 2008-01-24T00:12:00
- - Fix syntax error in one of the tests. Note to self - just fixing
- that warning in the test case, then shipping without retesting, NOT
- SMART!
-
-1.0.12 2008-02-18T22:00:00
- - Text::Markdown - borgborgborgborgborg.
- - Added additional POD documentation.
- - Cleaned up some tests, and some additional test cases.
- - Options to turn off all the extra features introduced in
- MultiMarkdown.
-
-1.0.13 2008-02-19T23:54:33
- - Due to the UFT8 support this module no longer works on perl <
- 5.8, note this in the Makefile.PL and modules.
- - I managed to ship a module without Makefile.PL, WTF? Really
- need to start using ShipIt.
-
-1.0.14 2008-02-21T22:41:33
- - Fix a bug in the packaging of the last version.
- - Add links to other implementations and some notes about them.
- - Add a (failing) unit test for some unexpected behavior reported on
- the list.
-
-1.0.15 2008-02-23T11:13:07
- - Start using ShipIt to package the distribution.
-
-1.0.16 2008-02-25T14:24:00
- - Fix bugs with tab_width in constructor / as an option.
- - Fix bugs with tab width in pre/code blocks.
-
-1.0.17 2008-03-17T01:54:00
- - Add Markdown.pl and MultiMarkdown.pl, which work the same way as the
- original Markdown.pl. These scripts *are not* installed by default,
- but you will be prompted to install them when you run Makefile.PL
-
- - Make _DeTab significantly quicker. Text::Balanced is still the main
- performance sore point however. :(
-
- - Re-organise the module code so that Text::Markdown is a standalone
- module which does not require Text::MultiMarkdown.
- Text::MultiMarkdown now inherits from Text::Markdown and adds the
- additional MultiMarkdown functionality. This is a *large* change to
- the module's internals, but is much more in the spirit of the
- original Markdown project (and should silence most complaints about
- how the code works, and possible even stop John Gruber hating my
- guts).
-
- If you were using Text::Markdown previously, but relying on an
- implicit MultiMarkdown feature, this *could be a breaking change*.
-
- Detailed description of any possible user visible changes below:
-
- - Text::Markdown will no longer supports the additional attribute
- specification for images and links feature, which was not in
- original Markdown, but were previously supported after
- the code merge of Text::Markdown and Text::MultiMarkdown.
-
- If you are relying on this features, it is recommended that you
- use Text::MultiMarkdown (configured as you prefer), as this is
- not a supported feature in the original Markdown.
-
- - Text::MultiMarkdown has changed the order of attributes in image
- tags, the id attribute is moved from the first to the last
- attribute (barring user supplied attributes). An example of the
- expected change is included below:
-
- Old output: <img id="image" src="http://path.to/image" alt="image" title="Image title" width="40px" height="400px" />
-
- New output: <img src="http://path.to/image" alt="image" title="Image title" id="image" width="40px" height="400px" />
-
- This is due to the code re-organisation, moving the id attribute
- around shouldn't affect anything that isn't relying on the
- attribute ordering (which is meant to be unimportant in HTML), and
- allows for simplification of the unified code.
-
-1.0.18 2008-04-20T18:54:50
- - Clean up local stuff for settings.
- - Do a little cleanup of intialisation (more needed)
- - Remove copy pasted regexes from Text::MultiMarkdown
- - Fix bug with line breaks in links - http://bugs.debian.org/459885,
- thanks to patches and test input / output provided by Adeodato Simó.
- (See t/37anchormultilinebugs.t)
- - Incorperated MDTest1.1's tests, and made most of the Text-Markdown
- and Text-MultiMarkdown tests in MDTest format.
- - Add and document an accessor for the parsed markdown URLs.
- - Fix html4tags option in Markdown.pl and MultiMarkdown.pl
-
-1.0.19 2008-04-22T18:34:00
- - Remove auto_install from Makefile.PL, this is a deprecated feature
- and it shouldn't be being used at all.
+1.0.30 2009-10-22T22:04:40
+ - Add support for XHTML Headers: metadata
+
+1.0.29 2009-10-06T08:25:40
+ - Update dependency versions in Makefile.PL (neglected in last release).
+
+1.0.28 2009-10-05T20:24:40
+ - Changes to conform with the latest Text::Markdown version 1.0.26 API.
+ - Update README file and tie it to the code.
+
+1.0.27 2009-08-27T00:49:50
+ - Change bug tracker metadata to the github issue tracker.
+ - Fix http://github.com/bobtfish/text-multimarkdown/issues#issue/5
+ regression causing specialchars to not be unhashed in footnotes.
+
+1.0.26 2009-07-01T08:35:00
+ - Fix to depend on the Text::Markdown package.
+
+1.0.25 2009-06-09T22:52:13
+ - Split Text::MultiMarkdown back out into it's own dist.
+
+1.0.24 2008-11-16T14:33:30
+ - Add trust_list_start_value patch from Ricardo Signes (RT#40814)
+ to enable <li value='X'> output for list numbering.
+ This feature is disabled by default.
+
+1.0.23 2008-11-02T18:24:30
+ - Ship a release with the correct contents so that the tests pass.
+
+1.0.22 2008-10-23T18:24:44
+ - RT#37909 - Fix + in email addresses.
+ - RT#40303 - Fix use in Mason by adding "use re 'eval'" to both files.
+ - Add SVN repository to Makefile.PL
+ - Remove META.yml from source control so it is regenerated
+ automatically.
+
+1.0.21 2008-07-24T08:33:00
+ - Fix hard tabs in Changelog
+ - Add unit test for core dumps issue from RT#36203
+ - Fix POD spelling.
+ - Fix warning from RT#34856.
+ - Add test for another tab width issue (related to <hr> generation)
+ from RT#37769. Fix this issue.
+ - More test additions and more splitting the test suites into MDTest
+ modules.
1.0.20 2008-07-11T23:30:00
- Update README.txt
@@ -178,48 +65,165 @@
- Mutilate the list processing somewhat to reduce the compilation
of recursive regexes, and so stop perl (<5.10) crapping itself
on lots of input. This isn't the full fix - really shouldn't be
- usng recursive regexes at all. RT#37297
-
-1.0.21 2008-07-24T08:33:00
- - Fix hard tabs in Changelog
- - Add unit test for core dumps issue from RT#36203
- - Fix POD spelling.
- - Fix warning from RT#34856.
- - Add test for another tab width issue (related to <hr> generation)
- from RT#37769. Fix this issue.
- - More test additions and more splitting the test suites into MDTest
- modules.
-
-1.0.22 2008-10-23T18:24:44
- - RT#37909 - Fix + in email addresses.
- - RT#40303 - Fix use in Mason by adding "use re 'eval'" to both files.
- - Add SVN repository to Makefile.PL
- - Remove META.yml from source control so it is regenerated
- automatically.
-
-1.0.23 2008-11-02T18:24:30
- - Ship a release with the correct contents so that the tests pass.
-
-1.0.24 2008-11-16T14:33:30
- - Add trust_list_start_value patch from Ricardo Signes (RT#40814)
- to enable <li value='X'> output for list numbering.
- This feature is disabled by default.
-
-1.0.25 2009-06-09T22:52:13
- - Split Text::MultiMarkdown back out into it's own dist.
-
-1.0.26 2009-07-01T08:35:00
- - Fix to depend on the Text::Markdown package.
-
-1.0.27 2009-08-27T00:49:50
- - Change bug tracker metadata to the github issue tracker.
- - Fix http://github.com/bobtfish/text-multimarkdown/issues#issue/5
- regression causing specialchars to not be unhashed in footnotes.
-
-1.0.28 2009-10-05T20:24:40
- - Changes to be in line with latest Text::Markdown version 1.0.26
- - Update README file and tie it to the code.
-
-1.0.29 2009-10-06T08:25:40
- - Update dependency versions in Makefile.PL neglected last release.
-
+ using recursive regexes at all. RT#37297
+
+1.0.19 2008-04-22T18:34:00
+ - Remove auto_install from Makefile.PL, this is a deprecated feature
+ and it shouldn't be being used at all.
+
+1.0.18 2008-04-20T18:54:50
+ - Clean up local stuff for settings.
+ - Do a little cleanup of intialisation (more needed)
+ - Remove copy pasted regexes from Text::MultiMarkdown
+ - Fix bug with line breaks in links - http://bugs.debian.org/459885,
+ thanks to patches and test input / output provided by Adeodato Simó.
+ (See t/37anchormultilinebugs.t)
+ - Incorperated MDTest1.1's tests, and made most of the Text-Markdown
+ and Text-MultiMarkdown tests in MDTest format.
+ - Add and document an accessor for the parsed markdown URLs.
+ - Fix html4tags option in Markdown.pl and MultiMarkdown.pl
+
+
+1.0.17 2008-03-17T01:54:00
+ - Add Markdown.pl and MultiMarkdown.pl, which work the same way as the
+ original Markdown.pl. These scripts *are not* installed by default,
+ but you will be prompted to install them when you run Makefile.PL
+
+ - Make _DeTab significantly quicker. Text::Balanced is still the main
+ performance sore point however. :(
+
+ - Re-organise the module code so that Text::Markdown is a standalone
+ module which does not require Text::MultiMarkdown.
+ Text::MultiMarkdown now inherits from Text::Markdown and adds the
+ additional MultiMarkdown functionality. This is a *large* change to
+ the module's internals, but is much more in the spirit of the
+ original Markdown project (and should silence most complaints about
+ how the code works, and possible even stop John Gruber hating my
+ guts).
+
+ If you were using Text::Markdown previously, but relying on an
+ implicit MultiMarkdown feature, this *could be a breaking change*.
+
+ Detailed description of any possible user visible changes below:
+
+ - Text::Markdown will no longer supports the additional attribute
+ specification for images and links feature, which was not in
+ original Markdown, but were previously supported after
+ the code merge of Text::Markdown and Text::MultiMarkdown.
+
+ If you are relying on this features, it is recommended that you
+ use Text::MultiMarkdown (configured as you prefer), as this is
+ not a supported feature in the original Markdown.
+
+ - Text::MultiMarkdown has changed the order of attributes in image
+ tags, the id attribute is moved from the first to the last
+ attribute (barring user supplied attributes). An example of the
+ expected change is included below:
+
+ Old output: <img id="image" src="http://path.to/image" alt="image" title="Image title" width="40px" height="400px" />
+
+ New output: <img src="http://path.to/image" alt="image" title="Image title" id="image" width="40px" height="400px" />
+
+ This is due to the code re-organisation, moving the id attribute
+ around shouldn't affect anything that isn't relying on the
+ attribute ordering (which is meant to be unimportant in HTML), and
+ allows for simplification of the unified code.
+
+1.0.16 2008-02-25T14:24:00
+ - Fix bugs with tab_width in constructor / as an option.
+ - Fix bugs with tab width in pre/code blocks.
+
+1.0.15 2008-02-23T11:13:07
+ - Start using ShipIt to package the distribution.
+
+1.0.14 2008-02-21T22:41:33
+ - Fix a bug in the packaging of the last version.
+ - Add links to other implementations and some notes about them.
+ - Add a (failing) unit test for some unexpected behavior reported on
+ the list.
+
+1.0.13 2008-02-19T23:54:33
+ - Due to the UFT8 support this module no longer works on perl <
+ 5.8, note this in the Makefile.PL and modules.
+ - I managed to ship a module without Makefile.PL, WTF? Really
+ need to start using ShipIt.
+
+1.0.12 2008-02-18T22:00:00
+ - Text::Markdown - borgborgborgborgborg.
+ - Added additional POD documentation.
+ - Cleaned up some tests, and some additional test cases.
+ - Options to turn off all the extra features introduced in
+ MultiMarkdown.
+
+1.0.11 2008-01-24T00:12:00
+ - Fix syntax error in one of the tests. Note to self - just fixing
+ that warning in the test case, then shipping without retesting, NOT
+ SMART!
+
+1.0.10 2008-01-23T15:40:00
+ - Fix bug with links processing in HTML blocks.
+
+1.0.9 2008-01-22T20:28:00
+ - Ship non-broken dist at CPAN (oops, rushing!)
+
+1.0.8 2008-01-22T19:20:00
+ - Do not encode amps or angle brackets in HTML comments + test case.
+ - Do not emit title attribute in <img> tags unless we have contents
+ for it. This was a 'feature' of original Markdown where I've decided
+ to go with what php-markdown does (tests updated).
+ - Added php-markdown tests (most/all of the regular tests pass except
+ the email obfu one).
+ - Added php-markdown extra tests (all fail).
+ - Added python markdown tests (mostly pass, but marked broken).
+ - Add a way of stopping inline HTML blocks from suppressing markdown
+ processing. Feature request from #catalyst-dev
+
+1.0.7 2008-01-07T16:31:00
+ - Encode isn't in core in all perls, add it to Makefile.PL
+
+1.0.6 2008-01-06T13:36:00
+ - Merge latest Markdown test suite I can find, and make it all pass,
+ pulling in code from Markdown 1.0.2b8. Things fixed:
+ - Inline HTML
+ - Lists
+ - Metadata skipping by leading line breaks
+ - 3rd form of links
+ - Implement features to suppress id attributes in <img> and <hX> tags
+ to be able to act more like original Markdown - now almost ready to
+ steal Text::Markdown (would want to turn off tables / citations and
+ bibliography for that)
+ - Move almost all the global variables into instance data.
+ - Fix unicode issues from CPAN.org's RT#27482
+ - Remove call to srand, it's not smart to do this more than once.
+
+1.0.5 2008-01-04T18:07:57
+ - Add Markdown and MultiMarkdown test suites.
+ - Fix a big bug introduced in 1.0.4 in citations
+ - Fix footnotes (and other small things) to match the test suite
+
+1.0.4 2008-01-02T02:03:50
+ - Refactor so that the processor instance has the same set of
+ persistent options as on the ->markdown method itself.
+ - Change all functions to be instance methods, moved a chunk of the
+ global data to the instance. The rest will follow shortly.
+ - The test suite now tests a reasonable set of the Markdown and
+ MultiMarkdown syntaxes.
+ - All known options and metadata keys have been documented.
+
+1.0.3 2007-11-24T20:22:00
+ - way to keep me accountable, CPANTESTERS! Maybe I shouldn't have
+ Test::Pod::Coverage enabled unless it actually checks out. Added some
+ fairly useless stubbed METHODS to POD and moved POD around a bit.
+
+1.0.2 2007-11-24T14:00:00
+ - move to Module::Install and clean various things up, mostly to make
+ CPANTS happy.
+
+1.0.1 2006-10-20T00:00:00
+ - include patch from Uwe Voelker to allow setting of options in
+ markdown(); also added a test case from Uwe. Thanks, Uwe!
+ Also updated changelog references in POD somewhat.
+
+1.0.0 2006-08-22T00:00:00
+ - first release
+
Modified: branches/upstream/libtext-multimarkdown-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtext-multimarkdown-perl/current/MANIFEST?rev=46233&op=diff
==============================================================================
--- branches/upstream/libtext-multimarkdown-perl/current/MANIFEST (original)
+++ branches/upstream/libtext-multimarkdown-perl/current/MANIFEST Fri Oct 23 02:16:46 2009
@@ -295,6 +295,8 @@
t/Text-MultiMarkdown.mdtest/Backslash_escapes.text
t/Text-MultiMarkdown.mdtest/Blockquotes_with_code_blocks.html
t/Text-MultiMarkdown.mdtest/Blockquotes_with_code_blocks.text
+t/Text-MultiMarkdown.mdtest/Citations.text
+t/Text-MultiMarkdown.mdtest/Citations.xhtml
t/Text-MultiMarkdown.mdtest/complex_escaping.text
t/Text-MultiMarkdown.mdtest/complex_escaping.xhtml
t/Text-MultiMarkdown.mdtest/Cross-References.text
@@ -361,4 +363,6 @@
t/Text-MultiMarkdown.mdtest/Warnings-rt34856.xhtml
t/Text-MultiMarkdown.mdtest/Wiki_Features.text
t/Text-MultiMarkdown.mdtest/Wiki_Features.xhtml
+t/Text-MultiMarkdown.mdtest/XHTML_Headers.text
+t/Text-MultiMarkdown.mdtest/XHTML_Headers.xhtml
Todo
Modified: branches/upstream/libtext-multimarkdown-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtext-multimarkdown-perl/current/META.yml?rev=46233&op=diff
==============================================================================
--- branches/upstream/libtext-multimarkdown-perl/current/META.yml (original)
+++ branches/upstream/libtext-multimarkdown-perl/current/META.yml Fri Oct 23 02:16:46 2009
@@ -32,4 +32,4 @@
bugtracker: http://github.com/bobtfish/text-multimarkdown/issues
license: http://opensource.org/licenses/bsd-license.php
repository: http://github.com/bobtfish/text-multimarkdown/
-version: 1.0.29
+version: 1.0.30
Modified: branches/upstream/libtext-multimarkdown-perl/current/lib/Text/MultiMarkdown.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtext-multimarkdown-perl/current/lib/Text/MultiMarkdown.pm?rev=46233&op=diff
==============================================================================
--- branches/upstream/libtext-multimarkdown-perl/current/lib/Text/MultiMarkdown.pm (original)
+++ branches/upstream/libtext-multimarkdown-perl/current/lib/Text/MultiMarkdown.pm Fri Oct 23 02:16:46 2009
@@ -9,7 +9,7 @@
use Carp qw(croak);
use base qw(Text::Markdown);
-our $VERSION = '1.0.29';
+our $VERSION = '1.0.30';
our @EXPORT_OK = qw(markdown);
=head1 NAME
@@ -776,6 +776,9 @@
elsif (lc($key) eq "css") {
$result.= qq[\t\t<link type="text/css" rel="stylesheet" href="$self->{_metadata}{$key}"$self->{empty_element_suffix}\n];
}
+ elsif( lc($key) eq "xhtml header") {
+ $result .= qq[\t\t$self->{_metadata}{$key}\n]
+ }
else {
$result.= qq[\t\t<meta name="$key" content="$self->{_metadata}{$key}"$self->{empty_element_suffix}\n];
}
Added: branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/Citations.text
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/Citations.text?rev=46233&op=file
==============================================================================
--- branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/Citations.text (added)
+++ branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/Citations.text Fri Oct 23 02:16:46 2009
@@ -1,0 +1,32 @@
+
+Handle MultiMarkdown-style citations.
+
+
+This is a borrowed idea[p. 23][#Doe:1996].
+
+> This is a cited blockquote without a page reference.[][#Smith:2005].
+
+And a plain paragraph.
+
+
+And a code block that is not a citation:
+
+ This is not a citation[p. 5][#Doe:1996].
+
+
+And a work by Johnson that is not cited, but should be included in bibliography:
+[Not cited][#Johnson:1996]
+
+And multiple citations.[p. 3][#Doe:1996][p. 10][#Smith:2005]
+
+How about a citation within a footnote? [^footcite]
+
+[#Smith:2005]: James Smith. Some interesting paper. *Some Journal*, 1(2): 101-123, 2005.
+
+[#Doe:1996]: John Doe. *Some Book*. Blog Books, 1996.
+
+[#Johnson:1996]: Bill Johnson. *Some Book*. Blog Books, 1996.
+
+[#James:1996]: John James. *Some Book*. Blog Books, 1996.
+
+[^footcite]: As described previously. [p. 12][#Smith:2005]
Added: branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/Citations.xhtml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/Citations.xhtml?rev=46233&op=file
==============================================================================
--- branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/Citations.xhtml (added)
+++ branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/Citations.xhtml Fri Oct 23 02:16:46 2009
@@ -1,0 +1,42 @@
+<p>Handle MultiMarkdown-style citations.</p>
+
+<p>This is a borrowed idea<span class="markdowncitation"> (<a href="#Doe:1996">1</a>, <span class="locator">p. 23</span>)</span>.</p>
+
+<blockquote>
+ <p>This is a cited blockquote without a page reference.<span class="markdowncitation"> (<a href="#Smith:2005">2</a>)</span>.</p>
+</blockquote>
+
+<p>And a plain paragraph.</p>
+
+<p>And a code block that is not a citation:</p>
+
+<pre><code>This is not a citation[p. 5][#Doe:1996].
+</code></pre>
+
+<p>And a work by Johnson that is not cited, but should be included in bibliography:
+<span class="notcited" id="Johnson:1996"/></p>
+
+<p>And multiple citations.<span class="markdowncitation"> (<a href="#Doe:1996">1</a>, <span class="locator">p. 3</span>)</span><span class="markdowncitation"> (<a href="#Smith:2005">2</a>, <span class="locator">p. 10</span>)</span></p>
+
+<p>How about a citation within a footnote? <a href="#fn:footcite" id="fnref:footcite" class="footnote">1</a></p>
+
+<div class="footnotes">
+<hr />
+<ol>
+
+<li id="fn:footcite"><p>As described previously. <span class="markdowncitation"> (<a href="#Smith:2005">2</a>, <span class="locator">p. 12</span>)</span><a href="#fnref:footcite" class="reversefootnote"> ↩</a></p></li>
+
+</ol>
+</div>
+
+<div class="bibliography">
+<hr />
+<p>Bibliography</p>
+
+<div id="Doe:1996"><p>[1] <span class="item">John Doe. <em>Some Book</em>. Blog Books, 1996.</span></p></div>
+
+<div id="Smith:2005"><p>[2] <span class="item">James Smith. Some interesting paper. <em>Some Journal</em>, 1(2): 101-123, 2005.</span></p></div>
+
+<div id="Johnson:1996"><p>[3] <span class="item">Bill Johnson. <em>Some Book</em>. Blog Books, 1996.</span></p></div>
+
+</div>
Added: branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/XHTML_Headers.text
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/XHTML_Headers.text?rev=46233&op=file
==============================================================================
--- branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/XHTML_Headers.text (added)
+++ branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/XHTML_Headers.text Fri Oct 23 02:16:46 2009
@@ -1,0 +1,9 @@
+Title: MultiMarkdown Test Document
+Author: Fletcher T. Penney, MD
+Date: January 14, 2006
+Format: complete
+Css: http://some.url/sample.css
+XHTML Header: <link rel="openid.server" href="http://www.myopenid.com/server" />
+ <link rel="openid.delegate" href="http://openid.org/example" />
+
+Intro: This is the first paragraph.
Added: branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/XHTML_Headers.xhtml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/XHTML_Headers.xhtml?rev=46233&op=file
==============================================================================
--- branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/XHTML_Headers.xhtml (added)
+++ branches/upstream/libtext-multimarkdown-perl/current/t/Text-MultiMarkdown.mdtest/XHTML_Headers.xhtml Fri Oct 23 02:16:46 2009
@@ -1,0 +1,15 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html>
+ <head>
+ <meta name="Author" content="Fletcher T. Penney, MD" />
+ <link type="text/css" rel="stylesheet" href="http://some.url/sample.css" />
+ <meta name="Date" content="January 14, 2006" />
+ <meta name="Format" content="complete" />
+ <title>MultiMarkdown Test Document</title>
+ <link rel="openid.server" href="http://www.myopenid.com/server" />
+<link rel="openid.delegate" href="http://openid.org/example" />
+ </head>
+<body>
+<p>Intro: This is the first paragraph.</p>
+</body>
+</html>
More information about the Pkg-perl-cvs-commits
mailing list