Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Material can not deal with cpp pointer sign * in markdown environment which means italic #47

Open
Daniel-UCAS opened this issue Nov 30, 2016 · 4 comments

Comments

@Daniel-UCAS
Copy link

Example code
`

const Foam::surfaceScalarField&
Foam::surfaceInterpolation::weights() const
{
    if (!weights_)
    {
        makeWeights();
    }

    return (*weights_);
}

`
The following * after weights_ will make contents after it italic

return (*weights_);
2016-11-30_cpp_render

@Daniel-UCAS
Copy link
Author

This seems to be a common problem, just see
language-gfm issues-44
A simple solution is to put a space after *, but that is not perfect as expected
2016-11-30_cpp_render_1

@silvestreh
Copy link
Member

Yep, seems to happen with all syntax themes as I can reproduce this issue using One Dark/Light as well.

@Daniel-UCAS
Copy link
Author

Is there a better way to solve this?

@silvestreh
Copy link
Member

It seems that the space after the * character is the only way to go. Also, looks like the bug report on the language package is almost two years old which is really unfortunate it's not being prioritized.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants