mjbvz / vscode-markdown-mermaid

Adds Mermaid diagram and flowchart support to VS Code's builtin markdown preview
https://marketplace.visualstudio.com/items?itemName=bierner.markdown-mermaid
MIT License
633 stars 114 forks source link

Maximum text size in diagram exceeded #205

Closed xenkuo closed 7 months ago

xenkuo commented 1 year ago

Hi, seems like my documents size exceeds the maximum size that the extension set mermaid to support, I got below error when preview my doc: image

However, my doc size is only includes ~400words, seems like something else is wrong, below is content of my doc:

# Wifi Connect Process

## Main Files

[[wifi-default-c.md]]

## Diagram

```mermaid
sequenceDiagram

participant A as application
participant CC as common component
participant EW as esp_wifi
participant EN as esp_netif
participant IP as lwip
participant EE as esp_event

A ->>+ A: setup env 
note right of A: init esp_netif<br>init lwip
A ->>+ CC: example_connect()

critical example_wifi_start()
CC ->> EW: esp_wifi_init()
note right of EW: init wifi power, phy, supplicant, etc
note right of CC: construct esp_netif_config_t.base
CC ->> EW: esp_netif_create_wifi()
EW ->> EN: set config.stack with<br>s_wifi_netif_config_sta
note right of EN: s_wifi_netif_config_sta is:<br>wlanif_init_sta()<br>wlanif_input()
EN ->> IP: wlanif_init<br>set netif->output, linkoutput<br>these handlers will be <br>called by lwip output function
EN ->> IP: wlanif_input called by wifi stack<br>and calls netif_input handler

critical esp_netif_new(&cfg)
EW ->> EN: esp_netif_new()
note right of EN: create esp_netif<br>create lwip_netif<br>link lwip_netif to esp_netif->lwip_netif<br>link esp_netif list<br>process dhcps

rect rgb(250, 120, 120)
critical esp_netif_init_configuration
note over EN: set esp_netif->lwip_init_fn<br>set esp_netif->lwip_input_fn<br>set esp_netif->netif_handle to esp_netif->lwip_netif
note over EN: if cfg->driver provided, set esp_netif->driver_handle<br>driver_transimit<br>driver_transmit_wrap<br>driver_free_rx_buffer
note over EN: driver could also be updated after esp_netif_new<br> typically in post_attach callback
end
end

end

critical esp_netif_attach_wifi
EW ->> EN: esp_netif_attach_wifi() 

end

CC ->> EW: esp_wifi_set_default<br>_wifi_sta_handlers()

EW ->> EN: register handler of STA START/STA CONNECTED

critical START handler
note over EN, IP: set netif mac<br>action start<br>using lwip ipc call
note over EN, IP: in action start handler<br>esp_netif_lwip_add<br>GARP<br>AUTOUP<br>DHCP process

rect rgb(250, 120, 120)
critical esp_netif_lwip_add()
EN ->> IP: netif_add(...,<br>esp_netif->lwip_init_fn<br>tcpip_input)
note right of IP: link input to netif->input<br>call init(netif)<br>link netif list<br>igmp_start()
end
end

EN ->> IP: lwip_set_esp_netif
note right of IP: link esp_netif to lwip->state
end

critical CONNECTED handler
note over EN, IP: register rxcb<br>action connected<br>using lwip ipc call

critical rxcb
note over EN, IP: call esp_netif->lwip_input_fn
end
end

note right of CC: esp_wifi_set_storage<br>esp_wifi_set_mode(sta)
CC ->> EW: esp_wifi_start()

end

critical example_wifi_sta_do_connect()
CC ->> CC: init wifi_config_t
note right of CC: wifi_sta_config_t: ssid, password.. <br>wifi_ap_config_t:<br>wifi_nan_config_t:
CC ->> EE: esp_event_handler_register() with IP and WIFI event
CC ->> EW: esp_wifi_set_config()
CC ->> EW: esp_wifi_connect()

end

CC ->>- CC: register<br>shutdown handler
A ->>- A: create application task
mjbvz commented 1 year ago

Works fine for me with 1.19 of this extension.

Screenshot 2023-06-21 at 4 41 49 PM

Are you still seeing this issue and re you sure it's this extension that is causing it?

xenkuo commented 7 months ago

Thank you.