XText.XTextParser.ParseBlock C# (CSharp) Method

ParseBlock() private static method

private static ParseBlock ( string str ) : XTextElement
str string
return XTextElement
        private static XTextElement ParseBlock(string str)
        {
            if (str.StartsWith("  "))
            {
                return new XParagraph(BlockStyle.Indented, str.Substring(2));
            }

            return ParseInlineString(str);
        }