mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
[PR #241] [MERGED] Expose the number of lines in a document #886
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/xoofx/markdig/pull/241
Author: @MihaZupan
Created: 8/29/2018
Status: ✅ Merged
Merged: 9/4/2018
Merged by: @xoofx
Base:
master← Head:document-lines📝 Commits (1)
8afff09Expose the number of lines in a document📊 Changes
2 files changed (+11 additions, -4 deletions)
View changed files
📝
src/Markdig/Parsers/MarkdownParser.cs(+5 -3)📝
src/Markdig/Syntax/MarkdownDocument.cs(+6 -1)📄 Description
I think this would be a nice feature to have (I know I need it).
I've tried to do it by using a block parser just to count lines, but, while it worked, it seemed overkill considering the value is already known, just hidden.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.