-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
adds newline suppression for divs #366
Conversation
@wghilliard Acknowledge you PR, few comments:
On a lighter note, I have observed that many Microsoft folks use the library but never intend to support with say a GitHub sponsor to help the maintainer to maintain the library on an ongoing basis. I will be more than glad and appreciate If you could nudge your stakeholders at Microsoft to help with a sponsor. |
Thank you so much!
I don't quite follow, do you have an example / test case you could share?
This could be a viable solution, I'm not certain how the pattern matching works with HtmlAgilityPack. I can imagine defining the base case would be straight forward however it's not clear if an exhaustive list would be necessary in order to catch nested structures.
I have registered this library in the catalog of opensource dependencies, however I'm very removed from the decision makers. I can nominate it for the FOSS Fund, however the project will need to satisfy some additional criteria that is not currently met. We could discuss this more offline. |
@wghilliard quick note, I am down with a flu and will push out a release by Monday once I am feeling better. In retrospect, when I took a deeper look, what you have implemented is fine since the other block elements surrounding it will render their newlines appropriately. So ignore the concern which I raised.
I would like to learn more, you could DM me on twitter handle |
I don't actually have an active twitter account, but I've sent you an email (as listed on your github profile) from my @msft email address! |
if we're okay with this implementation, let's ship it! |
@wghilliard Check the latest release v4.3.0, it has support for your changes and also net46. There is one small change, the config name is |
excellent, thank you!! |
DISCLAIMER: I am a Microsoft employee making a contribution to this opensource project for use by downstream Microsoft products. If you would like to learn more, please contact [email protected].
In some cases there is HTML that will wrap standard text in
div
tags like thisThe default behavior for the ReverseMarkdown library is to append two newlines for each item, a prefix and suffix
\r\n
perdiv
tag, resulting in something that looks like this:In this PR, I propose adding a new
Config
option calledSuppressNewlines
that will remove the prefixed newline fromdiv
tags not enclosed intd
tags, such that the output may look like the following:also
would it be okay if the dotnet framework 4.7.2 builds were re-enabled? my product doesn't currently support dotnet core :(