<commit_before>﻿// Copyright (c) 2016 <NAME>. 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.Inlines;

namespace Markdig.Renderers.Wpf.Inlines
{
    /// <summary>
    /// A WPF renderer for a <see cref="LiteralInline"/>.
    /// </summary>
    /// <seealso cref="Markdig.Renderers.Wpf.WpfObjectRenderer{Markdig.Syntax.Inlines.LiteralInline}" />
    public class LiteralInlineRenderer : WpfObjectRenderer<LiteralInline>
    {
        /// <inheritdoc/>
        protected override void Write(WpfRenderer renderer, LiteralInline obj)
        {
            renderer.WriteText(ref obj.Content);
        }
    }
}<commit_msg>[Markdig.Wpf] Don't render empty inlines.<commit_after>﻿// Copyright (c) 2016 <NAME>. 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.Inlines;

namespace Markdig.Renderers.Wpf.Inlines
{
    /// <summary>
    /// A WPF renderer for a <see cref="LiteralInline"/>.
    /// </summary>
    /// <seealso cref="Markdig.Renderers.Wpf.WpfObjectRenderer{Markdig.Syntax.Inlines.LiteralInline}" />
    public class LiteralInlineRenderer : WpfObjectRenderer<LiteralInline>
    {
        /// <inheritdoc/>
        protected override void Write(WpfRenderer renderer, LiteralInline obj)
        {
            if (obj.Content.IsEmpty)
                return;

            renderer.WriteText(ref obj.Content);
        }
    }
}
{'fraction_non_alphanumeric': 0.11711711711711711, 'fraction_numerical': 0.005148005148005148, 'mean_word_length': 2.711217183770883, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '137053', 'n_tokens_mistral': 459, 'n_tokens_neox': 459, 'n_words': 119}