Releases: phikiphp/phiki
Releases · phikiphp/phiki
v0.3.2
v0.3.1
- Fix not being able to pass array of themes to CommonMark extension.
v0.3.0
- Add support for highlighting with multiple themes (see README).
- Disable wrapping
<div>
element by default - add option to enabled (see CommonMark section in README). - Remove bad Transformer API.
- This was undocumented because I wasn't happy with the API and the way it was designed, so I've removed in this release and will reevaulate for a future release.
- Various tidies.
v0.2.9
- Fix certain themes failing to parse because of missing scope property.
v0.2.8
- Pass highlighted tokens to
TransformerInterface::tokens()
.
v0.2.7
- Add
data-line
to line spans to allow adding line numbers with CSS.
v0.2.6
- Add base theme styles to wrapper.
v0.2.5
- Wrap
<pre>
in a<div>
with wrapper class.
This is a QoL thing. Most <pre>
tags will have overflow-x: auto
which makes absolute positioning outside of the <pre>
tag impossible because CSS is weird. Having this wrapper element makes it really easy to do this in Markdown contexts, where you don't necessarily control markup.
v0.2.4
- Use raw language string provided to
codeToHtml
for attribute and class, if provided as a string.
This will let you use an alias in your Markdown code blocks and have that alias as the data-attribute value or class.
v0.2.3
- Add a
data-language
attribute to generated<pre>
tag. - Add a
language-[name]
class to generate<pre>
tag.