Should be parsed as Code with a class var.
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var
This could be supported bidirectionally, in both reader and writer.
Primeramente el var para que quieres usarlo
Hello!
I'd like to know more about this issue. For example, when talking about an HTML reader, do you just want <var> to have the same behaviour as <code>?
Maybe I can try and contribute to it. I'll read the code a little bit to see if I'm capable of doing it.
No, not the same behavior. In pandoc Code elements can have attributes; the suggestion is to add the var class to these attributes in parsing var.
@Wandmalfarbe on samp, see #5792. tt is already parsed as generic Code, which seems right.
For Writers/HTML, do we want to check if var or samp is a member of Code's attribute classes and if so write <var> or <samp>, respectively, instead of <code>?
For Writers/HTML, do we want to check if var or samp is a member of Code's attribute classes and if so write
<var>or<samp>, respectively, instead of<code>?
Yes, I think so.
Question: should we use var and samp as the classes, or variable and sample?
I think variable and sample makes more sense. I will add this feature if @DavSanchez is not working (or planning to work) on it.
@amogh09 please feel free to do it! At the moment I鈥檓 focusing my free time on HIE, so I don鈥檛 think I鈥檒l be able to work in this, at least for a time.
@jgm Added a PR for this feature. Please take a look.