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

contaner elements breaks ToC #278

Closed
marcoscaceres opened this issue Oct 19, 2013 · 9 comments
Closed

contaner elements breaks ToC #278

marcoscaceres opened this issue Oct 19, 2013 · 9 comments

Comments

@marcoscaceres
Copy link
Member

Currently, if one uses any element after the sotd section, respec refuses to generate a ToC. It would be nice to allow the use of, for instance, the main element (I wanted to style the main content specifically for mobile).

@darobin
Copy link
Member

darobin commented Oct 20, 2013

Can you be a little bit more precise? I know for a fact that you can have elements after the sotd section... Example code?

@marcoscaceres
Copy link
Member Author

@marcoscaceres
Copy link
Member Author

Search for the main element.

@darobin
Copy link
Member

darobin commented Oct 21, 2013

Ah, got it. I'm not sure that that's a correct use of the

element though. I mean, I understand what you're trying to say, but if I had a script that extracted just the main part of the document (e.g. for readability or whatnot) I'd get something with no title or abstract). It's possible to address this, but I don't think you're doing it right.

@marcoscaceres
Copy link
Member Author

Ok, sure... but the same thing happens with a div.

@darobin
Copy link
Member

darobin commented Oct 22, 2013

Yeah, but...
grumpy-old-maciej

@marcoscaceres
Copy link
Member Author

See first comment. I wanted to style the main stuff so it's more legible on mob.

@darobin
Copy link
Member

darobin commented Oct 22, 2013

Have you tried using section.introductory or section:not(.introductory)?

@marcoscaceres
Copy link
Member Author

I had not..

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