Skip to content

Bug parsing @code blocks #146

@idclifford

Description

@idclifford

By default, it seems like mkdoxy just extracts the text from @code blocks and adds them to the variable/class/whatever descriptions without any markdown syntax. I think this is an issue in MdCodeBlock in markdown.py.

I tried modifying the render function as follows:

def render(self, f: MdRenderer, indent: str):
	f.write("```\n")        # NEW LINE
	for line in self.lines:
		f.write(line)
		f.write('\n')
	f.write("```\n")        # NEW LINE

This seems to fix the issue, but this breaks the source code listings that mkdoxy generates. This needs to then be fixed by updating the jinja template and removing the ```.

This seems to fix the issue, but I don't know if this is the better way to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions