mirror of
https://github.com/jacobinwwey/obsidian-NotEMD.git
synced 2026-07-22 05:48:27 +00:00
fix(docs): restore README footer hierarchy
This commit is contained in:
parent
bac0fb8dc1
commit
1a88a8db8d
2 changed files with 19 additions and 1 deletions
|
|
@ -845,4 +845,7 @@ _Last refreshed for release tag `1.9.3` on 2026-06-24. Latest commit date: 2026-
|
|||
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=Jacobinwwey/obsidian-NotEMD&type=date&legend=top-left&sealed_token=Y32J_ehSQhPEtMK06bJeXYXBkFZbjjUR6tkogZgP92_f34InJDA7n9xcMmttFtW0o52nbKnU24nByb7DCiBnOrP2MOwevXU-so8BYLISzUsdeSUQRIOYg_lFXml_9MakEXjFEQStXFh7fUnsSXyIEq55QSTYNcbDOGF0k66bWhT1IyrZLnG26lJ-Mvbg" />
|
||||
</picture>
|
||||
</a>
|
||||
#### Friendly Links: [Linux DO:学AI,上L站!](https://linux.do/)
|
||||
|
||||
## Friendly Links
|
||||
|
||||
[Linux DO:学AI,上L站!](https://linux.do/)
|
||||
|
|
|
|||
15
src/tests/readmeFooterStructure.test.ts
Normal file
15
src/tests/readmeFooterStructure.test.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
|
||||
describe('README footer structure', () => {
|
||||
test('keeps Friendly Links outside the Star History HTML block', () => {
|
||||
const repoRoot = path.join(__dirname, '..', '..');
|
||||
const source = fs.readFileSync(path.join(repoRoot, 'README.md'), 'utf8');
|
||||
|
||||
expect(source).toMatch(
|
||||
/<\/a>\r?\n\r?\n## Friendly Links\r?\n\r?\n\[Linux DO:学AI,上L站!\]\(https:\/\/linux\.do\/\)/
|
||||
);
|
||||
expect(source).not.toContain('#### Friendly Links');
|
||||
expect(source).not.toContain('codex-text-link://');
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue