Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: remember source spans #410

Closed
ljw1004 opened this issue Jun 15, 2016 · 2 comments
Closed

Request: remember source spans #410

ljw1004 opened this issue Jun 15, 2016 · 2 comments

Comments

@ljw1004
Copy link

ljw1004 commented Jun 15, 2016

I'd love if the MarkdownParagraph and MarkdownSpan types contained information about which span in the original .md source file they refer to.

(Scenario: I use FSharp.Formatting to parse markdown, then I process it, and if there was anything wrong then I'd like to report which line number it was wrong at.)

@ljw1004
Copy link
Author

ljw1004 commented Jun 17, 2016

By the way, I'm currently using a HIDEOUS workaround...
https://github.com/ljw1004/mdspec2docx/blob/master/mdspec2docx/fuzzy-string.cs

Basically, I render an FSharp.MarkdownParagraph into a series of words (a rough alphanumeric-only representation of what the original markdown might have looked like). And I convert the original markdown source code into a series of words with known text spans. And I use a fuzzy word-matching algorithm to figure out where the MarkdownParagraph likely matches up.

:(

@AviAvni
Copy link
Contributor

AviAvni commented Jun 19, 2016

@ljw1004 please look #411

@dsyme dsyme closed this as completed Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants