Setup the docs framework
I did various changes and updates, using the question 8 (modelovani a projekce) as my lab rat. It's a pretty good case, containing images, plenty of math, footnotes, everything. I now feel it looks pretty good, I'll try to import more content.
This commit is contained in:
1 parent
84990c1942
commit
01beaa369a
15 files changed
+758
-59
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import { visit } from 'unist-util-visit';
|
||||
|
||||
export default function rehypeCustomFootnotes() {
|
||||
return (tree: any) => {
|
||||
visit(tree, 'element', (node) => {
|
||||
|
||||
if (
|
||||
node.tagName === 'h2' &&
|
||||
node.properties?.id === 'footnote-label'
|
||||
) {
|
||||
node.children[0].value = 'Zdroje'; // Change heading text
|
||||
}
|
||||
|
||||
if (
|
||||
node.tagName === 'span' &&
|
||||
node.properties?.className?.includes('sr-only') &&
|
||||
node.children?.[0]?.value?.startsWith('Section titled')
|
||||
) {
|
||||
node.children[0].remove;
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user