@mathcrowd/mmarked 3.1.3 → 3.1.4

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/dist/index.d.ts CHANGED
@@ -13,13 +13,20 @@ declare const renderMarkdownCompact: (text: string) => {
13
13
  time: number;
14
14
  };
15
15
 
16
+ /**
17
+ * Locale support for built-in type names (theorem, proof, etc.)
18
+ */
19
+ type Locale = 'zh' | 'en';
20
+
16
21
  /**
17
22
  * Parse Markdown to HTML.
18
23
  * Requires a valid license for commercial use in Node.js environment.
19
24
  * Call configureLicense() before using this function in server-side code.
20
25
  * Browser usage does not require license configuration.
21
26
  */
22
- declare const renderMarkdown: (text: string) => {
27
+ declare const renderMarkdown: (text: string, options?: {
28
+ locale?: Locale;
29
+ }) => {
23
30
  parsed: string;
24
31
  lexed: Tokens.Generic[];
25
32
  time: number;
@@ -112,4 +119,4 @@ declare function clearValidationCache(): void;
112
119
  declare function resetUsageStats(): void;
113
120
 
114
121
  export { UNLICENSED_WARNING_INTERVAL, clearValidationCache, configureLicense, getLicenseConfig, getWarningIfNeeded, isLicensed, renderMarkdown, renderMarkdownCompact, resetUsageStats, setUnlicensedWarningInterval, stopUsageTracking, tex2svg, trackFunctionCall, validateLicense };
115
- export type { LicenseConfig, LicenseValidationResult, UsageStats };
122
+ export type { LicenseConfig, LicenseValidationResult, Locale, UsageStats };