C# Class ScrewTurn.Wiki.FormattingPipeline

Contains methods for formatting content using a pipeline paradigm.
Afficher le fichier Open project: mono/ScrewTurnWiki Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat string

FormatWithPhase1And2() public static méthode

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.
Résultat string

FormatWithPhase3() public static méthode

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.
Résultat string

PrepareTitle() public static méthode

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.
Résultat string