diff --git a/package.json b/package.json index ce34fb7..02e36f1 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "react-select": "^5.1.0", "react-smooth-collapse": "^2.1.0", "react-swipeable": "^6.2.0", + "unist-util-visit": "^4.1.0", "web-vitals": "^1.0.1" }, "scripts": { @@ -61,7 +62,7 @@ ] }, "devDependencies": { - "@lingdocs/mdx-loader": "^0.0.8", + "@lingdocs/mdx-loader": "^0.1.6", "@types/jest": "^27.0.2", "@types/node": "^16.10.3", "@types/react": "^17.0.27", diff --git a/src/App.css b/src/App.css index d81d964..c0ad9fb 100644 --- a/src/App.css +++ b/src/App.css @@ -18,6 +18,20 @@ overflow-y: auto; } +.heading-link { + text-decoration: none; + color: #21252A; +} +.heading-link:hover { + color: #21252A; +} +.heading-link:active { + color: #21252A; +} +.heading-link:visited { + color: #21252A; +} + @media (max-width: 900px) { .table-of-contents { display: none; diff --git a/src/components/Chapter.js b/src/components/Chapter.js index 94a5ef1..a2e6ba3 100644 --- a/src/components/Chapter.js +++ b/src/components/Chapter.js @@ -31,7 +31,6 @@ const Chapter = ({ children: chapter }) => { } -