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

Syntax Type for Fenced Code Blocks Is Lost #53

Open
KeithBallard opened this issue Jan 24, 2023 · 0 comments
Open

Syntax Type for Fenced Code Blocks Is Lost #53

KeithBallard opened this issue Jan 24, 2023 · 0 comments

Comments

@KeithBallard
Copy link

In Markdown files, if a fenced code block specifies the syntax, such as:

```code_type
some fenced code...
```

Doxygen translates this to the XML:

<codeline><highlight class="normal">```code_type</highlight></codeline>
<codeline><highlight class="normal">some<sp/>fenced<sp/>code...</highlight></codeline>
<codeline><highlight class="normal">```</highlight></codeline>

Since Sphinx supports quite a few languages, the information is there for Doxyrest to pass along. However, Doxyrest creates the .rst file with the following block:

.. ref-code-block:: cpp

	some fenced code...

This occurs even if you specify python, shell, console, etc. Somehow, Doxyrest is assigning cpp as the syntax for all code blocks regardless of what is specified in the Markdown. What I am unsure about is how to fix it. I cannot locate the part of the code that generates this rst output. Any thoughts on where this occurs and how it might be resolved? I am happy to put in a pull request if I can get some direction.

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

1 participant