johnxnguyen / Down

Blazing fast Markdown / CommonMark rendering in Swift, built upon cmark.
Other
2.25k stars 324 forks source link

Add line and column properties to Node #280

Open arangato opened 2 years ago

arangato commented 2 years ago

This change provides access to line start/end and column start/end of a Node. It could be useful for error reporting when validating that a document is of a specific structure.

arangato commented 2 years ago

@johnxnguyen could you please take a look? This one is short and straight forward.