You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
Could check to see if subscript/superscript character exists in Unicode, rather than manually checking for certain ones. This would allow characters like +⁺₊ to be added without manually filtering, useful for recursive relations or indices problems. Kings Maths School website seems to use <sup> and <sub> currently.
Some flavours of markdown (though not necessarily Discord, and seemingly not GitHub) seem to support superscript with ^ and subscript with ~. eg. x^2 and x~1
ol
andul
Images
eg. https://www.kcl.ac.uk/mathsschool/weekly-maths-challenge/previouschallenges.aspx Challenge 18
Subscripts/superscripts
For example, x squared would simply be displayed as x2
Unicode superscript characters:
⁰¹²³⁴⁵⁶⁷⁸⁹
Unicode subscript characters:
₀₁₂₃₄₅₆₇₈₉
https://en.wikipedia.org/wiki/Superscripts_and_Subscripts
https://www.fileformat.info/info/unicode/block/superscripts_and_subscripts/list.htm
Could check to see if subscript/superscript character exists in Unicode, rather than manually checking for certain ones. This would allow characters like +⁺₊ to be added without manually filtering, useful for recursive relations or indices problems. Kings Maths School website seems to use
<sup>
and<sub>
currently.Some flavours of markdown (though not necessarily Discord, and seemingly not GitHub) seem to support superscript with
^
and subscript with~
. eg.x^2
andx~1
ol
andul
eg. https://www.kcl.ac.uk/mathsschool/weekly-maths-challenge/challenges-81-100.aspx Challenge 81. Because the list elements are children, the code does not catch them. (since it uses .next_sibling and .contents)
Tables
eg. https://www.kcl.ac.uk/mathsschool/weekly-maths-challenge/previouschallenges.aspx Challenge 5
A general HTML -> Markdown solution would be helpful; something like this might be helpful https://pypi.org/project/pypandoc/.
The text was updated successfully, but these errors were encountered: