@yozora/tokenizer-inline-math 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020-2021 guanghechen (me.guanghechen@gmail.com)
3
+ Copyright (c) 2020-2022 guanghechen (me.guanghechen@gmail.com)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yozora/tokenizer-inline-math",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Tokenizer for processing inline math (formulas)",
5
5
  "author": {
6
6
  "name": "guanghechen",
@@ -40,17 +40,17 @@
40
40
  ],
41
41
  "scripts": {
42
42
  "build": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js",
43
- "prebuild": "rimraf lib/ && tsc -p tsconfig.src.json --emitDeclarationOnly",
43
+ "prebuild": "rimraf lib/",
44
44
  "prepublishOnly": "cross-env ROLLUP_SHOULD_SOURCEMAP=false yarn build",
45
45
  "test": "cross-env TS_NODE_FILES=true jest --config ../../jest.config.js --rootDir ."
46
46
  },
47
47
  "dependencies": {
48
- "@yozora/ast": "^2.0.2",
49
- "@yozora/character": "^2.0.2",
50
- "@yozora/core-tokenizer": "^2.0.2"
48
+ "@yozora/ast": "^2.0.3",
49
+ "@yozora/character": "^2.0.3",
50
+ "@yozora/core-tokenizer": "^2.0.3"
51
51
  },
52
52
  "devDependencies": {
53
- "@yozora/tokenizer-inline-code": "^2.0.2"
53
+ "@yozora/tokenizer-inline-code": "^2.0.3"
54
54
  },
55
- "gitHead": "6911295e9eacfa29563fe93494704190e50625fd"
55
+ "gitHead": "8cc8f95cfebc8d752bc3272cdd24965f540c130b"
56
56
  }
@@ -1,3 +0,0 @@
1
- import type { IMatchInlineHookCreator } from '@yozora/core-tokenizer';
2
- import type { IDelimiter, IThis, IToken, T } from './types';
3
- export declare const match: IMatchInlineHookCreator<T, IDelimiter, IToken, IThis>;
@@ -1,3 +0,0 @@
1
- import type { IParseInlineHookCreator } from '@yozora/core-tokenizer';
2
- import type { INode, IThis, IToken, T } from './types';
3
- export declare const parse: IParseInlineHookCreator<T, IToken, INode, IThis>;
@@ -1,12 +0,0 @@
1
- import type { IInlineTokenizer, IMatchInlineHookCreator, IParseInlineHookCreator } from '@yozora/core-tokenizer';
2
- import { BaseInlineTokenizer } from '@yozora/core-tokenizer';
3
- import type { IDelimiter, INode, IThis, IToken, ITokenizerProps, T } from './types';
4
- /**
5
- * Lexical Analyzer for inlineMath.
6
- */
7
- export declare class InlineMathTokenizer extends BaseInlineTokenizer<T, IDelimiter, IToken, INode, IThis> implements IInlineTokenizer<T, IDelimiter, IToken, INode, IThis> {
8
- readonly backtickRequired: boolean;
9
- constructor(props?: ITokenizerProps);
10
- readonly match: IMatchInlineHookCreator<T, IDelimiter, IToken, IThis>;
11
- readonly parse: IParseInlineHookCreator<T, IToken, INode, IThis>;
12
- }
@@ -1,34 +0,0 @@
1
- import type { InlineMath, InlineMathType } from '@yozora/ast';
2
- import type { IBaseInlineTokenizerProps, IPartialYastInlineToken, ITokenizer, IYastTokenDelimiter } from '@yozora/core-tokenizer';
3
- export declare type T = InlineMathType;
4
- export declare type INode = InlineMath;
5
- export declare const uniqueName = "@yozora/tokenizer-inline-math";
6
- export interface IToken extends IPartialYastInlineToken<T> {
7
- /**
8
- * Thickness of the InlineMathDelimiter
9
- */
10
- thickness: number;
11
- }
12
- /**
13
- * IDelimiter of InlineMathToken.
14
- */
15
- export interface IDelimiter extends IYastTokenDelimiter {
16
- type: 'full';
17
- /**
18
- * Thickness of the InlineMathDelimiter
19
- */
20
- thickness: number;
21
- }
22
- export interface IThis extends ITokenizer {
23
- /**
24
- * Whether if the backtick mark wrapping necessary.
25
- */
26
- readonly backtickRequired: boolean;
27
- }
28
- export interface ITokenizerProps extends Partial<IBaseInlineTokenizerProps> {
29
- /**
30
- * Whether if the backtick mark wrapping necessary.
31
- * @default true
32
- */
33
- readonly backtickRequired?: boolean;
34
- }