Markdig prototype
- Issue MatterHackers/MCCentral#3660 Add Markdown implementation for help guides
This commit is contained in:
parent
c833f064a6
commit
9fa0c470cc
23 changed files with 1081 additions and 2 deletions
25
Utilities/MarkdigAgg/AggQuoteBlockRenderer.cs
Normal file
25
Utilities/MarkdigAgg/AggQuoteBlockRenderer.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// Copyright (c) 2016-2017 Nicolas Musset. All rights reserved.
|
||||
// This file is licensed under the MIT license.
|
||||
// See the LICENSE.md file in the project root for more information.
|
||||
|
||||
using Markdig.Syntax;
|
||||
using MatterHackers.Agg.UI;
|
||||
|
||||
namespace Markdig.Renderers.Agg
|
||||
{
|
||||
public class QuoteBlockX : AutoFit{ }
|
||||
|
||||
public class AggQuoteBlockRenderer : AggObjectRenderer<QuoteBlock>
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
protected override void Write(AggRenderer renderer, QuoteBlock obj)
|
||||
{
|
||||
// var section = new Section();
|
||||
|
||||
renderer.Push(new QuoteBlockX()); // section);
|
||||
renderer.WriteChildren(obj);
|
||||
//section.SetResourceReference(FrameworkContentElement.StyleProperty, Styles.QuoteBlockStyleKey);
|
||||
renderer.Pop();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue