Skip to content

Commit

Permalink
Swapped MarkdownSharp for MarkdownDeep.
Browse files Browse the repository at this point in the history
Pushed markdown rendering to a different thread, improving performance for large files.
  • Loading branch information
distantcam committed Jan 28, 2012
1 parent eccb1c6 commit 18643be
Show file tree
Hide file tree
Showing 5 changed files with 361 additions and 341 deletions.
6 changes: 3 additions & 3 deletions src/MarkPad/Document/DocumentView.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
Expand Down Expand Up @@ -61,7 +61,7 @@ void TextView_VisualLinesChanged(object sender, EventArgs e)
{
DoSpellCheck();
}

void DocumentViewSizeChanged(object sender, SizeChangedEventArgs e)
{
// Hide web browser when the window is too small for it to make much sense
Expand Down Expand Up @@ -117,7 +117,7 @@ private void DoSpellCheck()
{
this.spellCheckRenderer.ErrorSegments.Clear();

ReadOnlyCollection<VisualLine> visualLines = Editor.TextArea.TextView.VisualLines;
IEnumerable<VisualLine> visualLines = Editor.TextArea.TextView.VisualLines.AsParallel();

foreach (VisualLine currentLine in visualLines)
{
Expand Down
Loading

0 comments on commit 18643be

Please sign in to comment.