Include the label information, if any. Just add a line under the title and before the description. Use the BracketedSpan created in #3 to pass information to the latex renderer. We want to pass the color information, which comes from the label JSON.
In the renderer use this information to draw a filled in colored box around the text, similar to GitHub. Bonus points if they can be rounded. We also need to decide if the text color should be white or black given the label color. See this comment for a simple formula for deciding: https://stackoverflow.com/a/3943023
For an issue with two labels, something like:
# #6 – Issue Title
[Feature]{color="#1A2B3C"} [Important]{color="#1B2C3D"}
Issue Description
Include the label information, if any. Just add a line under the title and before the description. Use the
BracketedSpan
created in #3 to pass information to the latex renderer. We want to pass the color information, which comes from the label JSON.In the renderer use this information to draw a filled in colored box around the text, similar to GitHub. Bonus points if they can be rounded. We also need to decide if the text color should be white or black given the label color. See this comment for a simple formula for deciding: https://stackoverflow.com/a/3943023
For an issue with two labels, something like:
which renders as:
6 – Issue Title
Issue description...