-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Manual: add mark / highlight documentation #8194
Conversation
Duplicate of #8191 , merged yesterday? |
52e3b2b
to
7baa698
Compare
I think that the natural location for this new text is with the similar underline and smallcaps subsections at the end of the Inline formatting section.
The following comment is still open:
|
It looks like the test failures are due to the change to |
Why add the span.mark style? The HTML writer will use a |
Previously classes like "underline" and "marked" had to be the first class in a span in order for the span to be interpreted as a "ul" or "mark" element. This commit allows these special classes to be "stacked," e.g. `[test]{.mark .underline}`; in addition, the special classes are no longer required to come first in the list of classes. See #8194 for context.
OK, I've pushed a commit that allows these special classes to be combined in a single span. They are no longer required to be first in the list of classes. I think this means we could remove the special CSS for e.g. span.underline, but I want to check with @mb21 first. |
Re the span.mark style, maybe your "never mind" means that I don't need to say anything about it, but anyway:
|
You mean the |
This is probably a good time to bring up the very related PR #7307 again. |
I was going through my open items and found this. I'm inclined simply to close (withdraw) this PR. If you think that this would be a pity (and that we should continue and resolve the discussion on this issue) then please speak up! |
Thank you, this is indeed a better place for that section. Just to make sure: is the CSS still used after all the rebases? I'm probably missing something, as I didn't see why it's needed. |
I see that the only |
I've Thanks again! |
Please see this "Syntax for <mark>?" pandoc-discuss thread for context.
<span class="mark">Mark</span>
does indeed work (and uses themark
element)Also note:
The pandoc-discuss thread points out that the mark class only works when it's the first class (and I've verified that this is also the case for the underline and smallcaps classes). Is this intentional (in which case it should be documented) or is it a bug?
The default HTML template defines underline and smallcaps classes, but it doesn't define a mark class. This seems a bit inconsistent? My "try pandoc" below illustrates that in the "mark isn't the first class" case the HTML will use the (defined) underline and smallcaps classes and the (undefined) mark class
I used this "try pandoc" to check out the various behaviors