Exemple #1
0
 /// <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);
 }
Exemple #2
0
 /// <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);
 }