Skip to content

cpp single quotes in double quoted string causes crash (when prism-cpp is used in docsify) #3866

Open
@FoxyHunter7

Description

@FoxyHunter7

Information:

  • Prism version: latest
  • Plugins: none
  • Environment: docsify

Description
When using a codeblock with cpp code:

It trips over singlequotes ('') that are inside of a double quoated ("") strings

Docsify plugin error TypeError: y.next.value is null.

Example

if(modem.mqttSubscribe("waltertopic")) {
    ESP_LOGI("mqtt", "subscribed to topic 'waltertopic'");
} else {
    ESP_LOGI("mqtt", "subscribe failed");
}

This is an example codeblock

Note
I have not tested if this behaviour is the same when used outside of docsify, although I can confirm it is prism-cpp that is causing the error.

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