Flattened some of the Markdown Namespaces.
This commit is contained in:
Родитель
ff7552be27
Коммит
2b2d40f727
|
@ -11,7 +11,6 @@
|
|||
// ******************************************************************
|
||||
|
||||
using System.Text;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Blocks
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Inlines;
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
// ******************************************************************
|
||||
|
||||
using Microsoft.Toolkit.Parsers.Core;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Blocks
|
||||
{
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
// ******************************************************************
|
||||
|
||||
using Microsoft.Toolkit.Parsers.Core;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Inlines;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Blocks
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Blocks.List
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Blocks
|
||||
{
|
||||
/// <summary>
|
||||
/// This specifies the Content of the List element.
|
||||
|
|
|
@ -11,9 +11,8 @@
|
|||
// ******************************************************************
|
||||
|
||||
using System.Text;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Blocks.List
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Blocks
|
||||
{
|
||||
internal class ListItemBuilder : MarkdownBlock
|
||||
{
|
||||
|
|
|
@ -10,9 +10,7 @@
|
|||
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
|
||||
// ******************************************************************
|
||||
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Blocks.List
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Blocks
|
||||
{
|
||||
internal class ListItemPreamble
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
|
||||
// ******************************************************************
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Blocks.List
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Blocks
|
||||
{
|
||||
internal class NestedListInfo
|
||||
{
|
||||
|
|
|
@ -17,8 +17,6 @@ using System.Runtime.CompilerServices;
|
|||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Microsoft.Toolkit.Parsers.Core;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Blocks.List;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
[assembly: InternalsVisibleTo("UnitTests")]
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
// ******************************************************************
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Inlines;
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
// ******************************************************************
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Blocks
|
||||
{
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Parsers.Core;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Inlines;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
|
||||
// ******************************************************************
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Enums
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown
|
||||
{
|
||||
/// <summary>
|
||||
/// The alignment of content in a table column.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
|
||||
// ******************************************************************
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Enums
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the type of Hyperlink that is used.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
|
||||
// ******************************************************************
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Enums
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown
|
||||
{
|
||||
internal enum InlineParseMethod
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
|
||||
// ******************************************************************
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Enums
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown
|
||||
{
|
||||
/// <summary>
|
||||
/// This specifies the type of style the List will be.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
|
||||
// ******************************************************************
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Enums
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown
|
||||
{
|
||||
/// <summary>
|
||||
/// Determines the type of Block the Block element is.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
|
||||
// ******************************************************************
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Enums
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown
|
||||
{
|
||||
/// <summary>
|
||||
/// Determines the type of Inline the Inline Element is.
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Inlines;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Helpers
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
|
||||
// ******************************************************************
|
||||
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Helpers
|
||||
{
|
||||
/// <summary>
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Parsers.Core;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Parsers.Core;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
// ******************************************************************
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
// ******************************************************************
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Parsers.Core;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Parsers.Core;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Parsers.Core;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
using System.Collections.Generic;
|
||||
using System.Xml;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
|
||||
|
|
|
@ -14,7 +14,6 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Extensions;
|
||||
using Microsoft.Toolkit.Parsers.Core;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Parsers.Core;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
// ******************************************************************
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
|
||||
{
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
|
||||
// ******************************************************************
|
||||
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Blocks
|
||||
{
|
||||
/// <summary>
|
||||
|
|
|
@ -14,9 +14,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Microsoft.Toolkit.Extensions;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Blocks;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Helpers;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
|
||||
// ******************************************************************
|
||||
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
|
||||
{
|
||||
/// <summary>
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Blocks;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Inlines;
|
||||
|
||||
namespace Microsoft.Toolkit.Parsers.Markdown.Render
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Toolkit.Parsers.Markdown;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Blocks;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Render;
|
||||
using Windows.UI.Text;
|
||||
using Windows.UI.Xaml;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Enums;
|
||||
using Microsoft.Toolkit.Parsers.Markdown;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Inlines;
|
||||
using Microsoft.Toolkit.Parsers.Markdown.Render;
|
||||
using Windows.UI.Text;
|
||||
|
@ -21,7 +21,6 @@ using Windows.UI.Xaml;
|
|||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Documents;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Media.Imaging;
|
||||
|
||||
namespace Microsoft.Toolkit.Uwp.UI.Controls.Markdown.Render
|
||||
{
|
||||
|
@ -280,6 +279,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Controls.Markdown.Render
|
|||
{
|
||||
ishyperlink = true;
|
||||
}
|
||||
|
||||
LinkRegister.RegisterNewHyperLink(image, element.Url, ishyperlink);
|
||||
|
||||
if (ImageMaxHeight > 0)
|
||||
|
|
Загрузка…
Ссылка в новой задаче