Span not set for EmphasisInline and LinkInline #11

Closed
opened 2026-01-29 14:19:26 +00:00 by claunia · 2 comments
Owner

Originally created by @madskristensen on GitHub (Jun 18, 2016).

The Span property always return a 0,0 span for EmphasisInline and LinkInline.

This might be the same for other inline objects, but I've only tested for these two types

Originally created by @madskristensen on GitHub (Jun 18, 2016). The `Span` property always return a `0,0` span for EmphasisInline and LinkInline. This might be the same for other inline objects, but I've only tested for these two types
claunia added the invalid label 2026-01-29 14:19:26 +00:00
Author
Owner

@xoofx commented on GitHub (Jun 18, 2016):

You need to configure the pipeline with option pipelineBuilder.UsePreciseSourceLocation().Build() See for example the tests

@xoofx commented on GitHub (Jun 18, 2016): You need to configure the pipeline with option `pipelineBuilder.UsePreciseSourceLocation().Build()` See for example the [tests](https://github.com/lunet-io/markdig/blob/master/src/Markdig.Tests/TestSourcePosition.cs#L688)
Author
Owner

@madskristensen commented on GitHub (Jun 18, 2016):

Awesome. That worked!!

@madskristensen commented on GitHub (Jun 18, 2016): Awesome. That worked!!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#11