docfx icon indicating copy to clipboard operation
docfx copied to clipboard

Second and further tabs of tabbed content are missed in PDF

Open mrEDitor opened this issue 7 years ago • 2 comments

DocFX Version Used: 2.39.2.0 (reproducable at 2.40.2.0 as well)

Template used: pdf.default

Steps to Reproduce:

  1. Create markdown page with tabbed content
  2. Render it to PDF

Expected Behavior: All tabs are visible in PDF as subsections, just as with renderer which has no tabbed content in markdown support (e.g. Github, Gitlab or Microsoft TFS wiki engines).

Actual Behavior:

  • Only first tab is visible in PDF, and other are "hidden" by HTML attribute (I've noticed it by inspecting HTML produced with keepRawFiles).
  • All titles of tabs are printed above the only visible tab content section.

Workaround: I used following CSS rule to enforce rendering of tab content, but it is still misspositioned (all <li>-titles are going first, then all content <section>'s are going).

section[role="tabpanel"] {
	display: block !important;
}

Also attaching minimal reproducible example (ZIP).


The main question is: can I (or possibly, docfx defaults) somehow disable rendering tabs feature in PDF version of a document? It seems to me as the most adequate solution of the problem.

mrEDitor avatar Nov 22 '18 10:11 mrEDitor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Mar 06 '19 03:03 stale[bot]

It seems latest version of docfx (v2.76.0) seems not output tabbed content entirely.

filzrev avatar Apr 12 '24 12:04 filzrev