Implemented the markdown widget in agg

This commit is contained in:
Lars Brubaker 2022-10-10 17:10:25 -07:00
parent d416cef105
commit 4ac0b4da67
36 changed files with 22 additions and 2294 deletions

View file

@ -45,6 +45,8 @@ using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using global::MatterControl.Printing;
using Markdig.Agg;
using Markdig.Syntax.Inlines;
using MatterHackers.Agg;
using MatterHackers.Agg.Font;
using MatterHackers.Agg.Image;
@ -1137,7 +1139,12 @@ namespace MatterHackers.MatterControl
{
Workspaces = new ObservableCollection<PartWorkspace>();
Workspaces.CollectionChanged += (s, e) =>
// get markdown working correctly
MarkdownWidget.LaunchBrowser = ApplicationController.LaunchBrowser;
MarkdownWidget.RetrieveText = WebCache.RetrieveText;
MarkdownWidget.RetrieveImageSquenceAsync = WebCache.RetrieveImageSquenceAsync;
Workspaces.CollectionChanged += (s, e) =>
{
if (!restoringWorkspaces)
{