jeffreytse / jekyll-spaceship

🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
MIT License
605 stars 63 forks source link

Replace `\0' in code block to exclusion #56

Closed hoonti06 closed 3 years ago

hoonti06 commented 3 years ago

Hi, I have some problem to convert cpp code block

I want to convert code block as below

Trie* find(const char* key) {
    if (*key == '\0') return this;
    int idx = *key - 'A';
    if (!next[idx]) return NULL;
    return next[idx]->find(key + 1);
}

void insert(const char* key) {
    if (*key == '\0') finish = true;
    else {
        int idx = *key - 'A';
        if (!next[idx])
            next[idx] = new Trie();
        next[idx]->insert(key + 1);
}


but, result is not I expected image

jeffreytse commented 3 years ago

Hi @hoonti06

Thanks for the reporting, I will fix this issue as soon as possible.

Thanks and regards

jeffreytse commented 3 years ago

Hi @hoonti06

Firstly, thanks for your patience, and now this issue has been addressed and fixed. Please update your plugin to the latest version and try again.

Thanks and regards

hoonti06 commented 3 years ago

It's perfect. Thank you!