mirror of
https://github.com/foambubble/foam.git
synced 2026-04-24 03:01:01 -04:00
* Add .md extension when generating link definition section
The change in the definition allows links to be navigated in github
The changes in the JS inside _layouts maintains the html navigation when publishing to github pages.
For more info see https://foambubble.github.io/foam/link-reference-definition-improvements
* Updated existing docs to new link definition section
* better md file detection and consolidated code in parent template
* added mdx extension to markdown file detection
* added note about shortcut taken
* added configuration to toggle extensions in wikilinks + tests
* Revert "Updated existing docs to new link definition section"
This reverts commit 50e4a527e0.
We'll do this change once the version has been released
Co-authored-by: Jani Eväkallio <jani.evakallio@gmail.com>
17 lines
345 B
HTML
17 lines
345 B
HTML
---
|
|
layout: foam
|
|
---
|
|
|
|
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
|
|
|
{{ content }}
|
|
|
|
<script>
|
|
window.addEventListener('DOMContentLoaded', (event) => {
|
|
var duplicateHeading = document.querySelector("h1:not(#foam)");
|
|
if (duplicateHeading && duplicateHeading.remove) {
|
|
duplicateHeading.remove();
|
|
}
|
|
});
|
|
</script>
|