Skip to content

GH_Parser

Public Class

Provides parsing methods for the Grasshopper Markdown flavour.

Inheritance Hierarchy

System.Object
Grasshopper.Documentation.GH_Parser

Namespace: Grasshopper.Documentation

Assembly: Grasshopper (in Grasshopper.dll)

Syntax

public class GH_Parser

The GH_Parser type exposes the following members.

Properties

Name

Description


Public Property
Static Member

Gets an array of characters that are considered to be whitespace. At the moment, this array contains the space char and the tab char, it does not contain feeds or breaks.


Methods

Name

Description


Public Method
Static Member

Test whether a line represents a chapter header underline. Chapter header underlines contain at least 4 consecutive equals symbols preceded or followed by any amount of white space.


Public Method
Static Member

Test whether a line is a comment. Commented lines begin with double slashes (//) and are ignored during parsing.


Public Method
Static Member

Test whether a line represents a referenced link target. Note; this is a quick check. The link might still be invalid, use the IsLinkLine overload to include validity checks.


Public Method
Static Member

Test whether a line represents a referenced link target.


Public Method
Static Member

Test whether a line contains a list item.


Public Method
Static Member

Test whether a line represents a paragraph header underline. Paragraph header underlines contain at least 4 consecutive dashes preceded or followed by any amount of white space.


Public Method
Static Member

Test whether a line is a block quote line. Block quotes start with a larger than symbol.


Public Method
Static Member

Parse a block of text and return it as an interpreted IGH_Fragment.