I want to turn wikitext into HTML for display on a web front-end I'm building.  
For what I'm doing, all I need is a few constructs like wiklinks, bold, and 
italic, which I'm able to do with a smallish amount of mwparserfromhell code.

The one annoyance I've got now is I'm using bootstrap 
<https://getbootstrap.com/> in a web front-end, so I don't want <b> and <i> 
HTML tags.  I want is <span class="fw-bold"> 
<https://getbootstrap.com/docs/5.0/utilities/text/#font-weight-and-italics>  
(and likewise class="fst-italic") Is there some way to tell 
mwparserfromhell.nodes.Tag to use that alternate markup when it processes bold 
or italic wikicode?
_______________________________________________
pywikibot mailing list -- pywikibot@lists.wikimedia.org
Public archives at 
https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/VQJKNT3XCRUIJW33H6ZQ5X64QNOW2DAR/
To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

Reply via email to