Add Additional Font #207

Closed
opened 2026-01-29 14:30:22 +00:00 by claunia · 1 comment
Owner

Originally created by @PatrickRyder on GitHub (May 15, 2018).

This project seems to be exactly what I have been searching for except for one thing: I need to be able to specify at least two fonts. This could be as simple as having one serif font and one sans serif. I have tried creating a stylesheet. This sort-of works, but I seem to lose all the other markdown support as soon as a I put my text in a <span/>.

I get the feeling I may be missing something simple. Does what I am describing sound like something that can be achieved?

If I can solve this problem, I'd happily donate to future development.

Kind wishes ~ Patrick

Originally created by @PatrickRyder on GitHub (May 15, 2018). This project seems to be exactly what I have been searching for except for one thing: I need to be able to specify at least two fonts. This could be as simple as having one serif font and one sans serif. I have tried creating a stylesheet. This sort-of works, but I seem to lose all the other markdown support as soon as a I put my text in a `<span/>`. I get the feeling I may be missing something simple. Does what I am describing sound like something that can be achieved? If I can solve this problem, I'd happily donate to future development. Kind wishes ~ Patrick
claunia added the question label 2026-01-29 14:30:22 +00:00
Author
Owner

@xoofx commented on GitHub (May 15, 2018):

There is nothing in standard markdown that allows this. But you may be able to do workaround this with the extension custom containers in markdig.

@xoofx commented on GitHub (May 15, 2018): There is nothing in standard markdown that allows this. But you may be able to do workaround this with the extension [custom containers](https://github.com/lunet-io/markdig/blob/master/src/Markdig.Tests/Specs/CustomContainerSpecs.md) in markdig.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#207