{"repo":"depado/bfchroma","free":true,"listed":false,"github":"https://github.com/depado/bfchroma","clone":"git clone https://github.com/depado/bfchroma.git","description":"Integrating Chroma syntax highlighter as a Blackfriday renderer","language":"Go","stars":63,"topics":["chroma","blackfriday","blackfriday-renderer","syntax-highlighting","markdown","markdown-to-html"],"license":"MIT","category":"productivity","readme_excerpt":"bfchroma Integrating Chroma syntax highlighter as a Blackfriday renderer. Install and prerequisites This project requires and uses the v2 version of Blackfriday. Features This renderer integrates chroma to highlight code with triple backtick notation. It will try to use the given language when available otherwise it will try to detect the language. If none of these two method works it will fallback to sane defaults. Usage bfchroma uses the functional options approach so you can customize the behavior of the renderer. It uses sane defaults when no option is passed so you can use the renderer simply by doing so : Options - Style(s string) Define the style used by chroma for the rendering. The full list can be found here - ChromaStyle( chroma.Style) This option can be used to passe directly a chroma.Style instead of the string representing the style as with the Style(string) option. - WithoutAutodetect() By default when no language information is written in the code block, this renderer will try to auto-detect the used language. This option disables this behavior and will fallback to a sane default when no language information is available. - EmbedCSS() This option will embed CSS needed for chroma's html.WithClasses() at the beginning of blackfriday document. CSS can also be extracted separately by calling Renderer 's. ChromaCSS(w) method, which will return styleshet for currently set style - Extend(bf.Renderer) This option allows to define the base blackfriday that will be exte","default_branch":null,"files":null,"tree":[],"storefront":"/r/depado","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/depado/bfchroma/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}