Wexus2 0.20
wexus::MarkDown Class Reference

#include <MarkDown.h>

List of all members.

Public Types

enum  {
  Format_Lists = 1, Format_Quotes = 2, Format_Links = 4, Format_Titles = 8,
  Format_None = 0, Format_Basic = Format_Lists|Format_Quotes, Format_BlogPost = 0x7F, Format_Comment = Format_Basic,
  Format_WikiPage = Format_BlogPost
}

Static Public Member Functions

static QByteArray process (const QByteArray &markdown, int flags=Format_Basic)
static HTMLString title (const QByteArray &markdown)
static HTMLString firstPara (const QByteArray &markdown)

Detailed Description

A Markdown like formatter.

This needs work. Currently supports:

*bold* _italics_ =title= [wikilink] [[reallink]] *list item

Author:
Aleksander Demko

Member Function Documentation

static HTMLString wexus::MarkDown::firstPara ( const QByteArray &  markdown) [static]

Returns the first paragraph, already rendered as an HTML string from the givenmarkdown code.

Author:
Aleksander Demko
static QByteArray wexus::MarkDown::process ( const QByteArray &  markdown,
int  flags = Format_Basic 
) [static]

Format the given markdown code as HTML markup.

As flags, either choose Format_Basic, Format_Post Format_Wiki, or if you want total controler, the indiviual type flags.

Author:
Aleksander Demko
static HTMLString wexus::MarkDown::title ( const QByteArray &  markdown) [static]

Returns the title, already rendered as an HTML string from the givenmarkdown code.

Author:
Aleksander Demko

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator