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

Callout rendering is messy #5

Open
noelwelsh opened this issue Oct 8, 2015 · 2 comments
Open

Callout rendering is messy #5

noelwelsh opened this issue Oct 8, 2015 · 2 comments

Comments

@noelwelsh
Copy link
Contributor

Callouts render differently (and poorly) in PDF and HTML. In PDF they have two titles, the title assigned to the Latex environment, and then the title given to any content.

screen shot 2015-10-08 at 12 56 25

In HTML they only have two level heading numbering, which is confusing as they are often within at least two levels of headings already.

screen shot 2015-10-08 at 12 56 46

@noelwelsh
Copy link
Contributor Author

Proposed fix:

  • remove frametitle attribute from InfoCallout, WarningCallout, and DangerCallout environments.
  • the incorrect numbering in the HTML is, as far as I can tell, Pandoc messing up. Propose marking callout headings as unnumbered in our style guide.

@d6y
Copy link
Contributor

d6y commented Oct 8, 2015

If it's the problem I think it is, we've worked around this in Essential Slick by just using bold:

<div class="callout callout-info">
**Group By True**

There's a `groupBy { _ => true}` trick 
...

This renders in HTML as:

essential-slick-3 pdf page 100 of 127 2015-10-08 12-55-50

noelwelsh pushed a commit that referenced this issue Oct 8, 2015
Untested, because I'm not sure how to test this without publishing it.

Closes #5
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

No branches or pull requests

2 participants