What's meaning of the magic numbers?
stefanzweig opened this issue · comments
in
Line 24 in 704ad30
I wonder what 'b4de2a49c8' and '8c94a2ed4b' mean. Would you explain me this?
Thank you very much.
Those are the sequences that get used to wrap highlighted text - for example:
This returns the following:
b4de2a49c8Pyodide8c94a2ed4b provides "Python with the scientific stack, compiled to WebAssembly" - it's an incredible project which lets you run a full working Jupyter notebook, complete with complex packages such as numpy and pandas, entirely in your browser without any server-side Python component running at all.
Then later I can turn b4de2a49c8Pyodide8c94a2ed4b
into <strong>Pyodide</strong>
I could use <strong>
and </strong>
directly instead, like this:
But then I'd have to think really hard about HTML escaping: I want to HTML escape any tags that show up in the result, but NOT the strong tags themselves.
So it's easier to use a random token that won't show up in any of the TIL content.