
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Appending a class to an H1-tag breaks the ToC-hack Β· Issue #2563 Β· squidfunk/mkdocs-material
Description:
I've read the contribution guidelines and agree with them I've found a bug and checked that ... ... the problem doesn't occur with the default MkDocs template ... the problem is not in ...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Video & Online Content
- Social Networks
- Fitness & Wellness
Content Management System {π}
What CMS is github.com built with?
Github.com utilizes WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
class, squidfunk, toc, issue, bug, open, sign, tochack, problem, attribute, title, resolved, projects, breaks, closed, martinbira, mkdocs, lists, item, page, adding, commented, navigation, issues, pull, requests, actions, security, appending, htag, description, ive, found, template, tag, tochtml, partial, behavior, attrlist, add, text, entry, information, temporary, workaround, added, reports, owner, table, contents,
Topics {βοΈ}
personal information appending bug resolved issue completed squidfunk mentioned open projects closed issues default mkdocs template attr_list markdown extension pretty sweet solution comment metadata assignees toc-hack assumes html partial breaks squidfunk closed projects milestone h1-tag breaks bug ensure open toc-hack html partial problem description 0 mkdocs 2 material contribution guidelines bug expected behavior actual behavior md file temporary workaround great opportunity level property nice job milestone relationships toc item h1 tag attribute lists page title entry github contents item x3ch1 class= hack tag resolved toc template attribute title { page item h1 contents
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:Appending a class to an H1-tag breaks the ToC-hack
articleBody:- [X] I've read the [contribution guidelines][1] and agree with them
__I've found a bug and checked that ...__
- [X] ... the problem doesn't occur with the default MkDocs template
- [X] ... the problem is not in any of my customizations (CSS, JS, template)
- [X] ... the documentation does not mention anything about my problem
- [X] ... there are no open or closed issues that are related to my problem
## Description
When appeding a class to an H1 tag with attribute lists, the ToC-hack in the `toc.html` partial breaks and the first item in the ToC is the page title. The ToC-hack assumes that the first attribute in an H1 is `id`, but when adding a class to it, `class` is the first tag.
### Expected behavior
When adding a class to an H1 using attribute lists the Page Title should not be in the ToC.
### Actual behavior
When adding a class to an H1 using attribute lists the Page Title is the first ToC item.
### Steps to reproduce the bug
1. Ensure that the `attr_list` markdown extension is used.
2. Add a class to the H1 in a `.md` file with at least one H2:
```
# This is my title { .myTitleClass }
Text
## This is my first ToC entry
Text
```
3. Run `mkdocs serve` and view
### Package versions
* Python: 3.9.0
* MkDocs: 1.1.2
* Material: 7.1.1
### Project configuration
``` yaml
markdown_extensions:
- attr_list
```
### System information
N/A
### Temporary workaround
A temporary workaround is to add an additional `if` to the `toc.html` partial that checks for `class`:
```
{% if toc | first is defined and "\x3ch1 class=" in page.content %}
{% set toc = (toc | first).children %}
{% endif %}
```
[1]: https://github.com/squidfunk/mkdocs-material/blob/master/CONTRIBUTING.md
author:
url:https://github.com/martinbira
type:Person
name:martinbira
datePublished:2021-04-14T10:12:08.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:3
url:https://github.com/2563/mkdocs-material/issues/2563
context:https://schema.org
headline:Appending a class to an H1-tag breaks the ToC-hack
articleBody:- [X] I've read the [contribution guidelines][1] and agree with them
__I've found a bug and checked that ...__
- [X] ... the problem doesn't occur with the default MkDocs template
- [X] ... the problem is not in any of my customizations (CSS, JS, template)
- [X] ... the documentation does not mention anything about my problem
- [X] ... there are no open or closed issues that are related to my problem
## Description
When appeding a class to an H1 tag with attribute lists, the ToC-hack in the `toc.html` partial breaks and the first item in the ToC is the page title. The ToC-hack assumes that the first attribute in an H1 is `id`, but when adding a class to it, `class` is the first tag.
### Expected behavior
When adding a class to an H1 using attribute lists the Page Title should not be in the ToC.
### Actual behavior
When adding a class to an H1 using attribute lists the Page Title is the first ToC item.
### Steps to reproduce the bug
1. Ensure that the `attr_list` markdown extension is used.
2. Add a class to the H1 in a `.md` file with at least one H2:
```
# This is my title { .myTitleClass }
Text
## This is my first ToC entry
Text
```
3. Run `mkdocs serve` and view
### Package versions
* Python: 3.9.0
* MkDocs: 1.1.2
* Material: 7.1.1
### Project configuration
``` yaml
markdown_extensions:
- attr_list
```
### System information
N/A
### Temporary workaround
A temporary workaround is to add an additional `if` to the `toc.html` partial that checks for `class`:
```
{% if toc | first is defined and "\x3ch1 class=" in page.content %}
{% set toc = (toc | first).children %}
{% endif %}
```
[1]: https://github.com/squidfunk/mkdocs-material/blob/master/CONTRIBUTING.md
author:
url:https://github.com/martinbira
type:Person
name:martinbira
datePublished:2021-04-14T10:12:08.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:3
url:https://github.com/2563/mkdocs-material/issues/2563
Person:
url:https://github.com/martinbira
name:martinbira
url:https://github.com/martinbira
name:martinbira
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:3
interactionType:https://schema.org/CommentAction
userInteractionCount:3
External Links {π}(2)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net