Skip to content

请问如何支持公式? #336

@yuany3721

Description

@yuany3721

在从1.6.10迁移到2.0.0时,配置markdown-it-katex失败,按原方法配置不报错但是无法看到页面,有概率出现如下报错:

<--- Last few GCs --->

[18964:000001B6778C9000]   491141 ms: Mark-Compact 4055.3 (4139.9) -> 4041.8 (4142.1) MB, pooled: 0 MB, 888.63 / 0.00 ms  (average mu = 0.401, current mu = 0.228) allocation failure; scavenge might not succeed
[18964:000001B6778C9000]   492456 ms: Mark-Compact 4057.7 (4142.4) -> 4044.0 (4144.4) MB, pooled: 0 MB, 1022.06 / 0.00 ms  (average mu = 0.319, current mu = 0.223) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 00007FF68A1E20AD node::SetCppgcReference+17245
 2: 00007FF68A14A4D8 v8::base::CPU::num_virtual_address_bits+92376
 3: 00007FF68ACCA1B1 v8::Isolate::ReportExternalAllocationLimitReached+65
 4: 00007FF68ACB7096 v8::Function::Experimental_IsNopFunction+2790
 5: 00007FF68AB06920 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+31392
 6: 00007FF68AB039BA v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+19258
 7: 00007FF68AB19251 v8::Isolate::GetHeapProfiler+7825
 8: 00007FF68AB19ACA v8::Isolate::GetHeapProfiler+9994
 9: 00007FF68AB2A567 v8::Isolate::GetHeapProfiler+78247
10: 00007FF68A7F348B v8::internal::Version::GetString+434795
11: 00007FF68AD8556E v8::PropertyDescriptor::writable+725998
12: 00007FF68AE4D1CD v8::PropertyDescriptor::writable+1544269
13: 00007FF68AE4D30F v8::PropertyDescriptor::writable+1544591
14: 00007FF60BAD1875

可能是什么原因?或者有考虑后续直接集成在默认配置中吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions