{"repo":"phoenixr-codes/mdbook-inline-highlighting","free":true,"listed":false,"github":"https://github.com/phoenixr-codes/mdbook-inline-highlighting","clone":"git clone https://github.com/phoenixr-codes/mdbook-inline-highlighting.git","description":"mdBook preprocessor that enables support for inline highlighting","language":"Rust","stars":13,"topics":["book","markdown","mdbook","mdbook-plugin","mdbook-plugins","mdbook-preprocessor"],"license":"MIT","category":"productivity","readme_excerpt":"mdbook-inline-highlighting Compatible with mdBook version 0.5. . Installation Usage In one of your chapters, you can write something like this: - [py] lambda x: x % 2 == 0 overrides the default js - [none] accumulate ignores the default js - (x) = x % 2 == 0 uses the default js implicitly Note that each inline code must have the following syntax: [LANGUAGE] TEXT with the space being mandatory. Inline codes beginning with a backslash will remove it and keep the rest as is so \\[py] if would result in [py] if . This preprocessor always uses the same version of highlight.js that is used for code blocks. Demo After cloning this repository and installing the crate, navigate to the test book directory and run mdbook serve to see the example above in action.","default_branch":null,"files":null,"tree":[],"storefront":"/r/phoenixr-codes","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/phoenixr-codes/mdbook-inline-highlighting/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."}