fix(docs): restore README footer hierarchy

This commit is contained in:
aliyun1121003339 2026-07-21 20:45:07 +08:00
parent bac0fb8dc1
commit 1a88a8db8d
2 changed files with 19 additions and 1 deletions

View file

@ -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/)

View 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://');
});
});