Markdown.XAML icon indicating copy to clipboard operation
Markdown.XAML copied to clipboard

NuGet Package Not The Same As Demo Code

Open Axemasta opened this issue 5 years ago • 3 comments

I ran the demo project and it worked as expected. I then pulled the NuGet package into my own project and installed it. There is an issue with the following properties of the Markdown class:

  • TableBodyStyle`

  • TableHeaderStyle

I pulled the code out of the sample, pulled in the xaml namespace and recieve the following warning: xaml warning

With these 2 styles set the app will not build, if these are removed then the app builds and displays the markdown, without table support.

visual studio error

Consider the following markdown document:

# Markdown

## My Markdown Page

This is great I have rendered some markdown!

 - List Item
 - List Item
 - List Item

Lets render a table!

| Name  | Email           |
|-------|-----------------|
| User1 | [email protected] |
| User2 | [email protected] |

Hooray!

When referencing the NuGet package the following is rendered: NuGet Render

If I pull the code from Markdown.Xaml directly into my project (bypassing the NuGet) then it renders correctly:

Directly Referencing Files

Does the NuGet package need rebuilding?

Axemasta avatar Dec 19 '19 10:12 Axemasta

it seems so!

TheCollegedude avatar Jun 09 '20 14:06 TheCollegedude

The NuGet package is unofficial; I reached out to the maintainer some time ago to see if I could publish an official one under the same name and haven't heard back.

I have intentions of publishing an official NuGet package under another name. However, as it's something I've never done before, I don't know what's involved, and therefore don't have a timeframe to share.

theunrepentantgeek avatar Jun 09 '20 22:06 theunrepentantgeek

@theunrepentantgeek I haven't done it before but found instructions at docs.microsoft.com and I would try it if it okay for you?

TheCollegedude avatar Jun 10 '20 08:06 TheCollegedude