C# Class UniversalMarkdown.Parse.Elements.HyperlinkInline

Represents a type of hyperlink where the text and the target URL cannot be controlled independently.
Inheritance: MarkdownInline, IInlineLeaf, ILinkElement
Show file Open project: QuinnDamerell/UniversalMarkdown Class Usage Examples

Private Properties

Property Type Description
AddTripChars void
FindEndOfRedditLink int
FindUrlEnd int
ParseAngleBracketLink UniversalMarkdown.Helpers.Common.InlineParseResult
ParseDoubleSlashLink UniversalMarkdown.Helpers.Common.InlineParseResult
ParseEmailAddress UniversalMarkdown.Helpers.Common.InlineParseResult
ParsePartialLink UniversalMarkdown.Helpers.Common.InlineParseResult
ParseRedditLink UniversalMarkdown.Helpers.Common.InlineParseResult
ParseSingleSlashLink UniversalMarkdown.Helpers.Common.InlineParseResult
ParseUrl UniversalMarkdown.Helpers.Common.InlineParseResult

Public Methods

Method Description
HyperlinkInline ( ) : System

Initializes a new markdown URL.

ToString ( ) : string

Converts the object into it's textual representation.

Private Methods

Method Description
AddTripChars ( List tripCharHelpers ) : void

Returns the chars that if found means we might have a match.

FindEndOfRedditLink ( string markdown, int start, int end ) : int

Finds the next character that is not a letter, digit or underscore in a range.

FindUrlEnd ( string markdown, int start, int maxEnd ) : int

Finds the end of a URL.

ParseAngleBracketLink ( string markdown, int start, int maxEnd ) : Common.InlineParseResult

Attempts to parse a URL within angle brackets e.g. "".

ParseDoubleSlashLink ( string markdown, int start, int maxEnd ) : Common.InlineParseResult

Parse a link of the form "/r/news" or "/u/quinbd".

ParseEmailAddress ( string markdown, int minStart, int tripPos, int maxEnd ) : Common.InlineParseResult

Attempts to parse an email address e.g. "[email protected]".

ParsePartialLink ( string markdown, int tripPos, int maxEnd ) : Common.InlineParseResult

Attempts to parse a URL without a scheme e.g. "www.reddit.com".

ParseRedditLink ( string markdown, int start, int maxEnd ) : Common.InlineParseResult

Attempts to parse a subreddit link e.g. "/r/news" or "r/news".

ParseSingleSlashLink ( string markdown, int start, int maxEnd ) : Common.InlineParseResult

Parse a link of the form "r/news" or "u/quinbd".

ParseUrl ( string markdown, int tripPos, int maxEnd ) : Common.InlineParseResult

Attempts to parse a URL e.g. "http://www.reddit.com".

Method Details

HyperlinkInline() public method

Initializes a new markdown URL.
public HyperlinkInline ( ) : System
return System

ToString() public method

Converts the object into it's textual representation.
public ToString ( ) : string
return string