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

feat(renderer): role not honored on h1 titles (#583) #584

Merged
merged 1 commit into from
Jun 6, 2020

Conversation

gdamore
Copy link
Collaborator

@gdamore gdamore commented Jun 6, 2020

This adds support for setting the role on a level 0 title,
which will cause the class for the document body to be set.

@gdamore
Copy link
Collaborator Author

gdamore commented Jun 6, 2020

The way I scraped the role off the attributes of the header felt a little slimy, but it seems the best way to match asciidoctor.

@gdamore
Copy link
Collaborator Author

gdamore commented Jun 6, 2020

NB: I fixed the style (apparently some whitespace crept in) -- please squash (or I can do that for you) before merging.

@codecov
Copy link

codecov bot commented Jun 6, 2020

Codecov Report

Merging #584 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #584      +/-   ##
==========================================
+ Coverage   88.40%   88.41%   +0.01%     
==========================================
  Files          66       66              
  Lines        4536     4542       +6     
==========================================
+ Hits         4010     4016       +6     
  Misses        342      342              
  Partials      184      184              

This adds support for setting the role on a level 0 title,
which will cause the class for the document body to be set.
@gdamore
Copy link
Collaborator Author

gdamore commented Jun 6, 2020

I squashed, because there was an unintended change (something I reverted) in the parser.

Copy link
Member

@xcoulon xcoulon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @gdamore 🙌

@xcoulon xcoulon merged commit 79a43b3 into bytesparadise:master Jun 6, 2020
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.

2 participants