HighlightedCodeblock
The HighlightedCodeblock component is used by the Code component to... wait for it... render code from a codeblock that has been tagged with a supported language.
This component has no life outside of this function.
For example this markdown:
markdown
```python# Solve the quadratic equation ax**2 + bx + c = 0# import complex math moduleimport cmatha = 1b = 5c = 6# calculate the discriminantd = (b**2) - (4*a*c)# find two solutionssol1 = (-b-cmath.sqrt(d))/(2*a)sol2 = (-b+cmath.sqrt(d))/(2*a)print('The solution are {0} and {1}'.format(sol1,sol2))```
renders this highlighted code:
python
# Solve the quadratic equation ax**2 + bx + c = 0# import complex math moduleimport cmatha = 1b = 5c = 6# calculate the discriminantd = (b**2) - (4*a*c)# find two solutionssol1 = (-b-cmath.sqrt(d))/(2*a)sol2 = (-b+cmath.sqrt(d))/(2*a)print('The solution are {0} and {1}'.format(sol1,sol2))