Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codeblock mark not work #190

Open
yanickxia opened this issue Nov 1, 2022 · 0 comments
Open

codeblock mark not work #190

yanickxia opened this issue Nov 1, 2022 · 0 comments

Comments

@yanickxia
Copy link

hexo default markdown-render support code mark. such like it.

  if (upgrade != nullptr) {
    const Router::RouteEntry::UpgradeMap* upgrade_map = filter_manager_callbacks_.upgradeMap();

    if (filter_chain_factory_.createUpgradeFilterChain(upgrade->value().getStringView(),
                                                       upgrade_map, *this)) {
      filter_manager_callbacks_.upgradeFilterChainCreated();
      return true;
    } else {
      upgrade_rejected = true;
      // Fall through to the default filter chain. The function calling this
      // will send a local reply indicating that the upgrade failed.
    }
  }
  //  create here !
  filter_chain_factory_.createFilterChain(*this);
  return !upgrade_rejected;
}

use codeblock it's works

{% codeblock lang:cpp createFilterChain https://github.com/envoyproxy/envoy/blob/b26b45eaacb810be390d7cfc7e21b8f5de32abfd/source/common/http/filter_manager.cc#L1444-L1459 github mark:1-2 %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant