wg21 icon indicating copy to clipboard operation
wg21 copied to clipboard

Problems with emphasis inside code blocks.

Open BengtGustafsson opened this issue 1 year ago • 3 comments

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 avatar Apr 20 '24 16:04 BengtGustafsson

Well you have to check the source code obviously.

BengtGustafsson avatar Apr 20 '24 16:04 BengtGustafsson

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

BengtGustafsson avatar May 11 '24 15:05 BengtGustafsson

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?

mpark avatar May 16 '24 23:05 mpark

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...

BengtGustafsson avatar May 25 '24 12:05 BengtGustafsson