/// <summary> /// Writes a <c>data-sourcepos="start-end"</c> attribute to the target writer. /// This method should only be called if <see cref="CommonMarkSettings.TrackSourcePosition"/> is set to <see langword="true"/>. /// Note that the attribute is preceded (but not succeeded) by a single space. /// </summary> protected void WritePositionAttribute(Inline inline) { HtmlFormatterSlim.PrintPosition(_target, inline); }
/// <summary> /// Writes a <c>data-sourcepos="start-end"</c> attribute to the target writer. /// This method should only be called if <see cref="CommonMarkSettings.TrackSourcePosition"/> is set to <see langword="true"/>. /// Note that the attribute is preceded (but not succeeded) by a single space. /// </summary> protected void WritePositionAttribute(Block block) { HtmlFormatterSlim.PrintPosition(_target, block); }