Related Objects
- Duplicates Merged Here
- T4574: parse switch typographical commands
@grigoletti I need some help.
CommandGroups is the texla object to represent the Latex structure
{ \sc\itshape text}
Now I have to render it to wikitext, what's the best syntax? nested templates?
Ok, let's define which text formatting rules are used by visualeditor:
- Bold face
- Italics
- Small capital letters
- Code
- Preformatted text
- Small text
- Big text
- Strike text
I see that some of these rules are converted as wikitext, like '' and some other ones are converted in their html5 tag, like <s>
I don't know if we should think about using a template for every type of formatting and then using nested templates or using html tag. I know that we want to avoid at all costs html inside our pages, but visualeditor add them under the hood. So to decide better I'd like to ask @crisbal and @tomaluca what do they think about it.
Should we use a template for every type of formatting or we can use the same html tags used by visualeditor?
I'll start only implementing the bold and italics, and leaving the plain text in the other cases.
Thanks!