# Cooking with C++

**URL:** <https://meta.discourse.org/t/cooking-with-c/187974>\
**Category:** Development\
**Created:** [April 24, 2021, 8:45am UTC](https://meta.discourse.org/t/cooking-with-c/187974 "2021-04-24T08:45:19Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Hubbe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hubbe/32/212629_2.png) [@Hubbe](https://meta.discourse.org/u/Hubbe)\
**Post date:** [April 25, 2021, 8:26am UTC](https://meta.discourse.org/t/cooking-with-c/187974/5 "2021-04-25T08:26:16Z")

</div>

> [@TheBestPessimist](#):
>
> why not try to use markdown code blocks?

Because I have better things to do than to hurd cats?  
If there is an easy way and a right way to do things, people will _always_ pick the easy way. I suppose if I could actually prevent people from putting StylePtr\<\> templates outside of pre-formatted text, then people would be forced to do the right thing, but how do I do that? (Also, it feels like a very heavy-handed solution, as it could also prevent perfectly valid ways to talk about StylePtr\<\> templates.)

My current solution for linking StylePtr\<\> templates using linkify also doesn’t work on pre-formatted text because the DOM is very different, but that’s a minor problem that I can probably fix with a little coding.

> [@spirobel](#):
>
> It seems like adding backticks and a link using the same pattern that the piratize plugin uses, would solve the challenge.

Maybe. I think what I would do is to use this pattern to automatically add the backticks if they aren’t there, and then use a post-cooking callback for linking. Unless I’m mistaken, there is no way to add a link in the middle of some pre-formatted text otherwise.

---

_[View the full topic](https://meta.discourse.org/t/cooking-with-c/187974)._
