C# Class ScrewTurn.Wiki.FormattingPipeline

Contains methods for formatting content using a pipeline paradigm.
显示文件 Open project: mono/ScrewTurnWiki Class Usage Examples

Public Methods

Method Description
FormatWithPhase1And2 ( string raw, bool forIndexing, FormattingContext context, System.PageInfo current ) : string

Performs the Phases 1 and 2 of the formatting process.

FormatWithPhase1And2 ( string raw, bool forIndexing, FormattingContext context, System.PageInfo current, string &linkedPages ) : string

Performs the Phases 1 and 2 of the formatting process.

FormatWithPhase3 ( string raw, FormattingContext context, System.PageInfo current ) : string

Performs the Phase 3 of the formatting process.

PrepareTitle ( string title, bool forIndexing, FormattingContext context, System.PageInfo current ) : string

Prepares the title of an item for display.

Private Methods

Method Description
GetSortedFormatters ( ) : IList

Gets the formatter providers list sorted by priority.

PrepareItemTitle ( string title ) : string

Prepares the title of an item for safe display.

Method Details

FormatWithPhase1And2() public static method

Performs the Phases 1 and 2 of the formatting process.
public static FormatWithPhase1And2 ( string raw, bool forIndexing, FormattingContext context, System.PageInfo current ) : string
raw string The raw WikiMarkup to format.
forIndexing bool A value indicating whether the formatting is being done for content indexing.
context FormattingContext The formatting context.
current System.PageInfo The current Page, if any.
return string

FormatWithPhase1And2() public static method

Performs the Phases 1 and 2 of the formatting process.
public static FormatWithPhase1And2 ( string raw, bool forIndexing, FormattingContext context, System.PageInfo current, string &linkedPages ) : string
raw string The raw WikiMarkup to format.
forIndexing bool A value indicating whether the formatting is being done for content indexing.
context FormattingContext The formatting context.
current System.PageInfo The current Page, if any.
linkedPages string The Pages linked by the current Page.
return string

FormatWithPhase3() public static method

Performs the Phase 3 of the formatting process.
public static FormatWithPhase3 ( string raw, FormattingContext context, System.PageInfo current ) : string
raw string The raw WikiMarkup to format.
context FormattingContext The formatting context.
current System.PageInfo The current Page, if any.
return string

PrepareTitle() public static method

Prepares the title of an item for display.
public static PrepareTitle ( string title, bool forIndexing, FormattingContext context, System.PageInfo current ) : string
title string The input title.
forIndexing bool A value indicating whether the formatting is being done for content indexing.
context FormattingContext The context information.
current System.PageInfo The current page, if any.
return string