Markdig removing braces #202

Open
opened 2026-01-29 14:30:15 +00:00 by claunia · 4 comments
Owner

Originally created by @Jeavon on GitHub (Apr 9, 2018).

The braces in the example below and the contents within them are getting stripped when converting to HTML. I thought it might have been the Generic Attributes Extension but I have no Extensions loaded.

This MD

All locally declared controllers get routed to:

-/umbraco/surface/{controllername}/{action}/{id}

Renders as

<p>All locally declared controllers get routed to:</p>
<p controllername action id>/umbraco/surface///</p>

Is it one of the Block or Inline parsers stripping this out or am I missing something else?

Originally created by @Jeavon on GitHub (Apr 9, 2018). The braces in the example below and the contents within them are getting stripped when converting to HTML. I thought it might have been the Generic Attributes Extension but I have no Extensions loaded. This MD ``` All locally declared controllers get routed to: -/umbraco/surface/{controllername}/{action}/{id} ``` Renders as ``` <p>All locally declared controllers get routed to:</p> <p controllername action id>/umbraco/surface///</p> ``` Is it one of the Block or Inline parsers stripping this out or am I missing something else?
claunia added the questionenhancementPR Welcome! labels 2026-01-29 14:30:15 +00:00
Author
Owner

@xoofx commented on GitHub (Apr 9, 2018):

Are you sure, because testing this on babelmark? You can see that markdig with no extensions behaves as expected...

@xoofx commented on GitHub (Apr 9, 2018): Are you sure, because testing this on [babelmark](https://babelmark.github.io/?text=All+locally+declared+controllers+get+routed+to%3A-%2Fumbraco%2Fsurface%2F{controllername}%2F{action}%2F{id})? You can see that markdig with no extensions behaves as expected...
Author
Owner

@Jeavon commented on GitHub (Apr 9, 2018):

@xoofx I was wrong, the Generic Attribute Extension was being loaded and was responsible, I will remove it. I guess this would be the expected output when it's in use?
Thanks!

@Jeavon commented on GitHub (Apr 9, 2018): @xoofx I was wrong, the Generic Attribute Extension was being loaded and was responsible, I will remove it. I guess this would be the expected output when it's in use? Thanks!
Author
Owner

@xoofx commented on GitHub (Apr 9, 2018):

I guess this would be the expected output when it's in use?

Maybe not. Need to dig into other Markdown engine supporting similar system and check what is their behavior... Will keep this issue open to track it.

@xoofx commented on GitHub (Apr 9, 2018): > I guess this would be the expected output when it's in use? Maybe not. Need to dig into other Markdown engine supporting similar system and check what is their behavior... Will keep this issue open to track it.
Author
Owner

@runlos commented on GitHub (Oct 31, 2022):

Hi, adding to this issue: We're having the same problems as the original poster, Generic Attribute extension is however not loaded.

"GET /api/resourceplan/{ResourceType}/{ResourceId}" is rendering as
"GET /api/resourceplan//"

Current extensions in use:
UseEmojiAndSmiley
UseGridTables
UseDiagrams

Currently running version 0.30.4

@runlos commented on GitHub (Oct 31, 2022): Hi, adding to this issue: We're having the same problems as the original poster, Generic Attribute extension is however not loaded. "GET /api/resourceplan/{ResourceType}/{ResourceId}" is rendering as "GET /api/resourceplan//" **Current extensions in use:** UseEmojiAndSmiley UseGridTables UseDiagrams Currently running version 0.30.4
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#202