DDOC adds emphasis on symbols, so how to use $(LINK a) properly?

kraybit via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 1 07:45:14 PST 2015


On Tuesday, 1 December 2015 at 15:32:56 UTC, Adam D. Ruppe wrote:
> On Tuesday, 1 December 2015 at 15:15:50 UTC, kraybit wrote:
>> But is there any way to link to other packages/modules, 
>> without adding "_" everywhere? Consider:
>
> sort of. You could define a custom macro
>
> DDOC_PSYMBOL=$0
>
> I think anyway... to make it just emit the original text 
> without the <b> tag.
>
>
>
> I think the automatic emphasis is a mistake anyway because it 
> often highlights homonyms which is just silly looking. Do 
> perhaps disabling it with the above macro is a good idea, then 
> you can manually $(B it) when you want it to be bolded instead 
> of _ing it when you don't want it bolded.


Thanks, that worked!
I'm happy :)


Cheers!





More information about the Digitalmars-d-learn mailing list