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

Added headerLevel capabilities... #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added headerLevel capabilities... #11

wants to merge 1 commit into from

Conversation

DWAK-ATTK
Copy link

...to HeaderBase, Header, and SubHeader; added overloaded ToMarkdownHeader extension method to support headerLevel; added to the HeaderExamples test method.

I modified the HeaderBase, Header, and SubHeader classes to produce markdown that translates to <h1> through <h6>.

Usage: "This is wrapped an H3 element when translated to HTML.".ToMarkdownHeader(3);

I only overloaded the ToMarkdownHeader() method, not the subhead method, because I didn't see the point. Both methods would have produced the exact same results.

Modifications are all done via method overloads and a little refactoring of private implementation code - so this constitutes a non-breaking change to the existing code base.

…added overloaded ToMarkdownHeader extension method to support headerLevel; added to the HeaderExamples test method.
@DWAK-ATTK
Copy link
Author

This is my first time working with Git. After reading a little more it looks like I should have created a new branch - which I did not do. I hope that doesn't mess anything up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant