Add more heading levels to avoid opaque errors#5
Conversation
There was a problem hiding this comment.
Thanks.
The last 2–3 levels do not really work because they are smaller than (or identical to) the default text on BoardGameGeek (which appears to be of size 12).
This can be seen with the following BGG Markup:
[size=14]14 size[/size]
Normal text
[size=12]12 size[/size]
Normal text
[size=10]10 size[/size]
Normal text
Supporting 6 levels would bring md_to_bgg closer to CommonMark, so it doesn't hurt to support them.
We just need to go from size 24 to size, say, 14 in 6 steps. This doesn't leave much liberty, leading for example to something like sizes 24, 22… 16, 14. The problem with this is that the most commonly used headers (level 1–2 or maybe 1–3) are not so easy to distinguish anymore, which is not so nice for users.
We could instead have levels 4–6 be in size 12 (normal text), maybe, with bold and italics used for distinguishing between them? Levels 1–3 would remain in sizes 24, 18 and 14.
Other options can be interesting too (like maybe 24, 20, 16, 14 and then 12 bold and 12 italics?
What do you think?
|
I went with the low sizes because I've seen it done before in markdown conversions. Yes, it was strange, but someone using a sixth-level header is probably used to seeing something strange. Stopping at a flat size is also a common solution. In either case, I would also expect some added clarity from all headers being in bold. I didn't quite register that none of them were made boldface by the md_to_bgg.py script. My main concern was avoiding the error; any reasonable behavior is fine by me. |
It seems harmless to support all header levels. I had a third-level header in my markdown and the error I got was completely opaque: