asciidoctor / asciidoctor-bibtex

Add bibtex citation support for asciidoc documents
Other
69 stars 27 forks source link

Feature request: div around cite:[] #75

Closed pddzaic closed 3 years ago

pddzaic commented 3 years ago

Would it be possible to wrap the link to the references into a DIV and assign a class (i.e. cite-bibtex) to it.

... is shown in cite:[ref1] ...

Should be in HTML as:

 .... is shown in <div class="cite-bibtex"><a href='#ref1'>1</a></div> ...

Styling with CSS would be much easier.

ProgramFan commented 3 years ago

Of course. In fact this feature is trivial to implement so a PR is welcome.

mojavelinux commented 3 years ago

span would be more appropriate as this is an inline element, not a block.

ProgramFan commented 3 years ago

The class is now 'citation'.

pddzaic commented 3 years ago

Thank you very much for the quick implementation.