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

Problems with emphasis inside code blocks. #97

Closed
BengtGustafsson opened this issue Apr 20, 2024 · 4 comments
Closed

Problems with emphasis inside code blocks. #97

BengtGustafsson opened this issue Apr 20, 2024 · 4 comments

Comments

@BengtGustafsson
Copy link

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
Copy link
Author

Well you have to check the source code obviously.

@BengtGustafsson
Copy link
Author

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
Copy link
Owner

mpark commented May 16, 2024

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
Copy link
Author

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

@mpark mpark closed this as completed May 30, 2024
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

2 participants