• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yunnysunny / bookforge / 22036642206

15 Feb 2026 01:38PM UTC coverage: 70.995% (+14.8%) from 56.206%
22036642206

Pull #2

github

yunnysunny
feat: fix html generate test
Pull Request #2: feat: refactor ui flow

63 of 81 branches covered (77.78%)

Branch coverage included in aggregate %.

98 of 169 new or added lines in 13 files covered. (57.99%)

4 existing lines in 3 files now uncovered.

358 of 512 relevant lines covered (69.92%)

27.05 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

77.78
/src/core/marked-plugins/gitbook-include.plugin.ts
1
import type { MarkedExtension, Tokens } from 'marked';
2

3
export const IncludeTokenType = 'gb-include';
15✔
4
export interface GitbookIncludeToken extends Tokens.Generic {
5
  type: typeof IncludeTokenType;
6
  tag: 'include';
7
  path: string;
8
}
9
export const gitbookIncludeExtension: MarkedExtension = {
15✔
10
  extensions: [
11
    {
12
      name: IncludeTokenType,
13
      level: 'block',
14
      start(src: string) {
15
        return src.indexOf('{%');
42✔
16
      },
17
      tokenizer(this, src: string): GitbookIncludeToken | undefined {
18
        const rule = /^\{%\s*include\s+"([\S]+)"\s*%\}/;
99✔
19
        const match = rule.exec(src);
99✔
20
        if (!match) return;
99✔
21

NEW
22
        const [, path] = match;
×
23

NEW
24
        return {
×
25
          type: 'gb-include',
26
          tag: 'include',
27
          raw: match[0],
28
          path,
29
        };
30
      },
31
    },
32
  ],
33
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc