realtimeprojects / mkdocs-ezglossary

Glossary support for mkdocs
MIT License
8 stars 1 forks source link

Term definition doesn't support formatting #3

Closed silopolis closed 7 months ago

silopolis commented 7 months ago

As an IT pro, my definitions often get formatted defined term like in:

**`mycommand`**
:   My command description

This is currently not supported and would be a very welcome improvement of this great plugin!

Thanks for your work Take care

realtimeprojects commented 7 months ago

This is a great idea, however, it is not done quickly, some minor refactoring is required to implement this. Nevertheless I try to address this the next days.

realtimeprojects commented 7 months ago

Meanwhile, in case all your definitions use the same formatting, consider using a custom definition template like:

<dt>
    <strong><code><a name="{{ target }}">{{ term }}</a></code></strong>
</dt>
<dd>
    {{ definition|safe }}
    <br>
    {{ reflink }}
</dd>
realtimeprojects commented 7 months ago

@silopolis Luckily, I found an easy way to implement it, however I did not spend much time in testing it. Hence, there is a v1.5.7a1 alpha-version available where this feature should work. It would be great if you could test it a little bit for giving me some feedback.