Allow customization the content of pagination #175
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Marpit could not modify the content of pagination via
content
declaration insection::after
. This PR makes it possible.Theme CSS and tweaked style must contain
attr(data-marpit-pagination)
incontent
declaration ofsection::after
because user expects to show the page number bypaginate: true
directive. Marpit will still ignore the whole ofcontent
declaration if the reference to that attribute is not contained.Also we added
data-marpit-pagination-total
attribute, indicates the total page number of rendered slides , tosection
element. Of course, it can use in thecontent
.This idea is came from yhatt/marp#263.