Skip to content

Asciidoc: variadic template dots rendered as \u2026 instead of as individual dots #838

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

Closed
anarthal opened this issue Jan 31, 2025 · 0 comments

Comments

@anarthal
Copy link

When a triple dot is found in a code block, it's rendered as the Unicode character \u2026 (…) instead of as three individual dot characters (...). I think this causes the syntax highlighter to get confused.

For example:

namespace boost::mysql {

/// A variadic template.
template <class... Args>
void f(Args...)
{
}

}  // namespace boost::mysql

Rendered as:

Image

Generated asciidoc:

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


A variadic template&period;

== 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... Args&gt;
void
f(Args...);
----



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

Relevant HTML fragment:

<pre class="highlightjs highlight"><code class="language-cpp hljs" data-lang="cpp"><span class="hljs-function"><span class="hljs-keyword">template</span>&lt;class…​ Args&gt;
<span class="hljs-keyword">void</span>
<span class="hljs-title">f</span><span class="hljs-params">(Args…​)</span></span>;</code></pre>
MrDocs
    C++ Documentation Tool
    version: 0.0.3
    build: 93d5d102c39b093d402ae3f95302fd734c8de616
    built with LLVM 20.0.0git

This is likely a side effect of enabling substitutions in the code block.

alandefreitas added a commit to alandefreitas/mrdocs that referenced this issue Jan 31, 2025
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