Skip to content

Asciidoc: attributes in functions rendered as a blank line #851

Closed
@anarthal

Description

@anarthal

It looks like there is a rendering issue with attributes in the asciidoc generator. They seem to be added to the resulting asciidoc, but when rendered to HTML, they are replaced by blank lines.

For instance:

namespace boost::mysql {

template <class T>
[[nodiscard]] int f();

}  // namespace boost::mysql

Generates the following asciidoc:

[#boost-mysql-f]
= xref:boost.adoc[boost]::xref:boost/mysql.adoc[mysql]::f
:relfileprefix: ../../
:mrdocs:


== Synopsis


Declared in `&lt;https://github.com/boostorg/mysql/blob/master/include/boost/repro.hpp#L4[boost&sol;repro&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class T&gt;
[[nodiscard]]
int
f();
----



[.small]#Created with https://www.mrdocs.com[MrDocs]#

Which renders as:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions