Skip to content

Commit

Permalink
colorize mermaid as plantuml
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn committed Nov 1, 2024
1 parent ef1478b commit 1da9f18
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions OneMore/Commands/Images/DiagramCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,6 @@

namespace River.OneMoreAddIn.Commands
{
using River.OneMoreAddIn.Models;
using River.OneMoreAddIn.Settings;
using River.OneMoreAddIn.UI;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Web;
using System.Windows.Forms;
using System.Xml.Linq;
using Resx = Properties.Resources;


Expand Down Expand Up @@ -197,10 +182,8 @@ public override async Task Execute(params object[] args)

if (collapse)
{
if (keyword == DiagramKeys.PlantUmlKey)
{
new ColorizeCommand(page, true).Colorize("plantuml", runs);
}
// for both plantuml and mermaid! TODO: Colorize Mermaid
new ColorizeCommand(page, true).Colorize("plantuml", runs);

if (title != "PlantUML")
{
Expand Down Expand Up @@ -521,10 +504,8 @@ private async Task<bool> RefreshDiagram(string diagramID)
size.SetAttributeValue("height", FormattableString.Invariant($"{bitmap.Height:0.0}"));
}

if (keyword == DiagramKeys.PlantUmlKey)
{
new ColorizeCommand(page, true).Colorize("plantuml", runs);
}
// for both plantuml and mermaid! TODO: Colorize Mermaid
new ColorizeCommand(page, true).Colorize("plantuml", runs);

await one.Update(page);

Expand Down

0 comments on commit 1da9f18

Please sign in to comment.