[Dlang-internal] Potential changes to DDoc
David Gileadi
gileadisNOSPM at gmail.com
Tue Jan 23 17:35:29 UTC 2018
On 1/23/18 10:30 AM, Jacob Carlborg wrote:
> On 2018-01-23 04:23, Walter Bright wrote:
>
>> (For example, using --- or ``` or ~~~ or 4 space indent for code
>> blocks. Gahhh. Just use ---, because it works and looks fine, and we
>> already do it.)
>
> The fenced code blocks (```) supports specifying a language as well:
>
> ```c++
> class Foo {}
> ```
>
> The already existing "---" only supports D. Although, it might not be
> that important to support.
My current code does support it for ``` and ~~~ fences, but not for ---
fences because that could change existing behavior. When there's a
language it outputs an $(OTHER_CODE language, code) macro instead of a
$(D_CODE code) macro.
More information about the Dlang-internal
mailing list