private bool HandleOrderedList(TextEditor editor)
        {
            Match match = this.MatchOrderedList(editor.GetTextLeftOfCursor());

            if (!match.Success)
            {
                return(false);
            }
            if (match.Value == editor.GetTextLeftOfCursor() && editor.IsCaratAtEndOfLine())
            {
                AutoContinueLists.EndList(editor);
            }
            else
            {
                int    num  = 1;
                string text = match.Value.Replace(".", "").Trim();
                bool   flag = int.TryParse(text, out num);
                string str  = match.Value;
                if (flag)
                {
                    str = match.Value.Replace(text, (num + 1).ToString());
                }
                editor.TextArea.Selection.ReplaceSelectionWithText(System.Environment.NewLine + str);
            }
            return(true);
        }
        private bool HandleBlockquote(TextEditor editor)
        {
            Match match = this.MatchBlockQuote(editor.GetTextLeftOfCursor());

            if (!match.Success)
            {
                return(false);
            }
            if (match.Value == editor.GetTextLeftOfCursor() && editor.IsCaratAtEndOfLine())
            {
                AutoContinueLists.EndList(editor);
            }
            else
            {
                editor.TextArea.Selection.ReplaceSelectionWithText(System.Environment.NewLine + match.Value);
            }
            return(true);
        }