[PR #334] fix code inline normalize #957

Closed
opened 2026-01-29 14:47:45 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/xoofx/markdig/pull/334

State: closed
Merged: Yes


The old normalize renderer only use two `` for code inlines which contain `.

Add:

  1. When n of continuous ` is included in the content, n+1 of ` will be used as delimiter.
  2. When the content starts or ends with `, a space will be added to separate delimiter and content.
  3. When the content is empty, a space will be used as content to prevent it be rendered to ``.
    a. `` 
    b. ` `
    
    a. ``
    b.
**Original Pull Request:** https://github.com/xoofx/markdig/pull/334 **State:** closed **Merged:** Yes --- The old normalize renderer only use two ``` `` ``` for code inlines which contain `` ` ``. Add: 1. When `n` of continuous `` ` `` is included in the content, `n+1` of `` ` `` will be used as delimiter. 2. When the content starts or ends with `` ` ``, a space will be added to separate delimiter and content. 3. When the content is empty, a space will be used as content to prevent it be rendered to ``` `` ```. ``` a. `` b. ` ` ``` a. `` b. ` `
claunia added the pull-request label 2026-01-29 14:47:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#957