Skip to content

Releases: phikiphp/phiki

v0.3.2

05 Nov 01:18
Compare
Choose a tag to compare
  • Fix HTML generator assuming all tokens will have default theme applied.

v0.3.1

05 Nov 01:13
Compare
Choose a tag to compare
  • Fix not being able to pass array of themes to CommonMark extension.

v0.3.0

05 Nov 00:58
Compare
Choose a tag to compare
  • 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

19 Oct 17:16
Compare
Choose a tag to compare
  • Fix certain themes failing to parse because of missing scope property.

v0.2.8

17 Oct 16:22
Compare
Choose a tag to compare
  • Pass highlighted tokens to TransformerInterface::tokens().

v0.2.7

14 Oct 23:09
Compare
Choose a tag to compare
  • Add data-line to line spans to allow adding line numbers with CSS.

v0.2.6

14 Oct 00:34
Compare
Choose a tag to compare
  • Add base theme styles to wrapper.

v0.2.5

14 Oct 00:31
Compare
Choose a tag to compare
  • 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

13 Oct 23:52
Compare
Choose a tag to compare
  • 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

13 Oct 23:49
Compare
Choose a tag to compare
  • Add a data-language attribute to generated <pre> tag.
  • Add a language-[name] class to generate <pre> tag.