-
Notifications
You must be signed in to change notification settings - Fork 14
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
graves inside a second-level heading render incorrectly #4
Comments
Oh, this is affecting |
Ah ha!
.SH this title \fBwill render\fP strangely which, on my machine, displays correctly, at least. Of course, .SH this title \fIwill render\fP strangely |
Actually https://www.gnu.org/software/groff/manual/html_node/Font-Families.html
So the right thing is
But using just |
\fR switches to the roman font, making this only work if the font was previously roman. With \fP, it switches to the previous font, working in both headlines as well as regular paragraph text. Fixes kapouer#4
Thank you ! i've added a test case - and now i'm fixing the tests, comparing man output without formatting is too relaxed and doesn't test this issue. |
🎊 Thanks so much! |
This includes a bugfix, kapouer/marked-man#4 , which Fixes npm#8984
This includes a bugfix, kapouer/marked-man#4 , which Fixes #8984 PR-URL: #8990
This includes a bugfix, kapouer/marked-man#4 , which Fixes #8984 PR-URL: #8990
This includes a bugfix, kapouer/marked-man#4 , which Fixes #8984 PR-URL: #8990
Put this in a file named
test.md
:Then run this:
$ marked-man test.md > test.1 $ man ./test.1
On my system, I get this:
note that
strangely
is missing the highlight..SH this title \fBwill render\fR strangely
this is the text output, but I'm kind bad at
troff
, so I think that\fR
ends the formatting, but this is impossible to google, so hopefully you know :)One solution is to just pitch anything in graves in a title: they're not being shown any differently anyway.
The text was updated successfully, but these errors were encountered: