mpark / wg21

Framework for Writing C++ Committee Papers
Boost Software License 1.0
125 stars 45 forks source link

Problems with emphasis inside code blocks. #97

Closed BengtGustafsson closed 5 months ago

BengtGustafsson commented 6 months ago

I don't get my @-surrounded emphasis to work, instead it just writes the @thing@ to the pdf.

Same problem for html.

Same problem with both __ and ** use .

Here is a sample code block that doesn't work for me, the intent is to boldface the word typename, but instead it just outputs the @ and @ sequences as is:

class MyClass {
    operator int() { return 0; }
    operator double() { return 1; }
};

auto conv = &MyClass::operator @**typename**@;

MyClass c;

int a = (c.*conv)();
double a = (c.*conv)();
BengtGustafsson commented 6 months ago

Well you have to check the source code obviously.

BengtGustafsson commented 6 months ago

I noted now that this only happens on one of my upcoming proposals, not the other. As this is rather strange, I attach the input and output file of the failing conversion for you to ponder over. ost.md ost.pdf

mpark commented 6 months ago

Hi @BengtGustafsson, this is due to the processing only being done on codeblocks with cpp as the language, rather than C++. Are you using cpp in the cases that work currently?

BengtGustafsson commented 5 months ago

Thanks for this explanation. It seems I use C++ a lot so that's why then. Unfortunately I didn't see your reply before the paper deadline so now I removed all those annotations...