UnquietCode / martek

markdown to latex renderer
0 stars 0 forks source link

include issue labels in the generated markdown #8

Open UnquietCode opened 3 years ago

UnquietCode commented 3 years ago

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

which renders as:

⁠6 – Issue Title

ft it

Issue description...