xoofx / xoofx/markdig

What is the right way to go about translating international characters using Markdig?

Open
#86 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
C#
Stars
5.3k
Forks
510
Avg merge
8d 5h
Merged PRs (30d)
5

Description

Hi,

Completely new to Markdig, so please forgive my ignorance.

I installed using Nuget and used the Advanced extensions in the pipeline, then hooked Markdig up to a HTML browser control in WPF. It mostly works exactly as expected, but when it comes to international characters, it falls down. That is, the WebBrowser control displays gibberish as Markdig doesn't touch these characters.

In my case this relates to the extra norwegian characters and their html equivalents:

æ - æ
ø - ø
å - å
Æ - Æ
Ø - Ø
Å - Å

And of course there are many, many other characters with similar translations.

I realize this may not be something that needs to be a part of Markdig as such, but I failed to find any information that told me what was the right way to take care of it in my own project. Write an extension?

Is there a tutorial for how to do something like this?

It is of course easy enough to search and replace the output of Markdig to do this, but it would be nice to not have to.

Thanks for a very cool project!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the Markdown-to-HTML output in the WPF WebBrowser control and inspect how the generated document is loaded. Done means documenting whether Markdig or the host controls character encoding, and providing guidance on the appropriate project-level solution or extension path.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, localization
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.