Numeration module

Creating standard numeration

=begin rakudoc :type<minor>

AUTHOR

Richard Hainsworth aka finanalyst

VERSION

v0.2.1

Purpose

RakuDoc gives a standard way to number headers and items.

In addition, numerations can be continued.

When a level is incremented in a multilevel numeration, the next level down is not changed.

When a level is incremented, higher levels start again.

This module can be sub-classed in order to provide different numbers / behaviours.

method inc( $level ) Increment the given level, resetting higher levels. Returns a string of the result.

However, for consistency, a numeration needs to be incremented whenever a numBLOCK is encountered, so to get 1, the numeration needs to be incremented

method reset Reset the counters for all levels.

errors

If a warning is created when trying an illegal :form string, then the errors are attached to the Numeration object.

The errors can be retrieved with my Numeration $n; # later after using it with $n.numvalue .say for $n.warnings.list

Warnings are generated, but a fallback is rendered.

=place semantic:AUTHOR :caption<Credits>

=place semantic:VERSION :!toc

=end rakudoc

Rakuast::RakuDoc::Render v1.0.14

Renders RakuDoc v2 to text, HTML, HTML-Extra, Markdown

Authors

  • Richard Hainsworth

License

Artistic-2.0

Dependencies

Test::Deeply::RelaxedPrettyDumpTest::OutputLibCurlURIDigest::SHA1::NativeText::MiscUtilsMethod::ProtectedTest::RunRakuAST::Deparse::HighlightRainbow:ver<0.3.0+>File::Directory::TreeJSON::FastYAMLishXML

Test Dependencies

Provides

  • RakuDoc::Citations
  • RakuDoc::MarkupMeta
  • RakuDoc::Numeration
  • RakuDoc::Plugin::HTML::Bulma
  • RakuDoc::Plugin::HTML::FontAwesome
  • RakuDoc::Plugin::HTML::Graphviz
  • RakuDoc::Plugin::HTML::Hilite
  • RakuDoc::Plugin::HTML::Latex
  • RakuDoc::Plugin::HTML::LeafletMaps
  • RakuDoc::Plugin::HTML::ListFiles
  • RakuDoc::Plugin::HTML::SCSS
  • RakuDoc::Plugin::Markdown::Graphviz
  • RakuDoc::Processed
  • RakuDoc::PromiseStrings
  • RakuDoc::Render
  • RakuDoc::ScopedData
  • RakuDoc::Templates
  • RakuDoc::To::Generic
  • RakuDoc::To::HTML
  • RakuDoc::To::HTML-Extra
  • RakuDoc::To::Markdown
  • RenderDocs

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.