Skip to content

Commit

Permalink
Chg: Markdig 0.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
neolithos committed Feb 26, 2019
1 parent a61ab1b commit e7917e9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions NeoMarkdigXaml/NeoMarkdigXaml.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<RepositoryType>git</RepositoryType>
<PackageTags>markdig markdown xaml wpf</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.0.4</Version>
<Version>1.0.5</Version>
<FileVersion>1.0.2.0</FileVersion>
</PropertyGroup>
<ItemGroup>
Expand All @@ -25,7 +25,7 @@
<Content Include="MarkdigXaml.licenseheader" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Markdig" Version="0.15.7" />
<PackageReference Include="Markdig" Version="0.16.0" />
</ItemGroup>
<ItemGroup>
<Page Include="Themes\generic.xaml">
Expand Down
6 changes: 3 additions & 3 deletions NeoMarkdigXaml/Renderers/XamlInlineRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ private static bool WriteSpan(XamlMarkdownWriter renderer, EmphasisInline span)
{
switch (span.DelimiterChar)
{
case '*' when span.IsDouble: // bold
case '_' when span.IsDouble: // bold
case '*' when span.DelimiterCount == 2: // bold
case '_' when span.DelimiterCount == 2: // bold
renderer.WriteStartObject(typeof(Bold));
return true;
case '*': // italic
Expand All @@ -102,7 +102,7 @@ private static bool WriteSpan(XamlMarkdownWriter renderer, EmphasisInline span)
return true;
case '^': // superscript, subscript
renderer.WriteStartObject(typeof(Span));
if (span.IsDouble)
if (span.DelimiterCount == 2)
renderer.WriteResourceMember(null, MarkdownXamlStyle.Superscript);
else
renderer.WriteResourceMember(null, MarkdownXamlStyle.Subscript);
Expand Down
2 changes: 1 addition & 1 deletion Tests/MarkdownCompare/MarkdownCompare.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Markdig">
<Version>0.15.7</Version>
<Version>0.16.0</Version>
</PackageReference>
<PackageReference Include="Markdig.Wpf">
<Version>0.2.6</Version>
Expand Down
2 changes: 1 addition & 1 deletion Tests/MarkdownWpfTest/MarkdownWpfTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Markdig">
<Version>0.15.7</Version>
<Version>0.16.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
2 changes: 1 addition & 1 deletion Tests/MarkdownXamlTest/MarkdownXamlTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Markdig">
<Version>0.15.7</Version>
<Version>0.16.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down

0 comments on commit e7917e9

Please sign in to comment.