- support Gatsby v5 (in addition to v4 & v3)
- support Gatsby v4 (in addition to v3)
- clean zero width spaces from clipboard when code is copied (to do so, the
copy
event is intercepted and processed only if the target is the component)
- bump required
@deckdeckgo/highlight-code
dependency to solve concurrent required scripts load for complex languages
- no language provided results in an
undefined
value for the attribute highlight-lines (#40) - highlight-lines information might be provided with the
node.lang
but als withnode.meta
- bump build dependencies
- bump peer dependency
gatsby
to v3 - bump peer dependency
@deckdeckgo/highlight-code
to v3 - highlight lines styling default behavior modified. Instead of background color highlighting, it uses a color contrast ("highlight opacity 1, no highlighted opacity 0.32")
- syntax highlighting for languages other than
javascript
- empty language default to no attribute
language
- support for lines highlighting (#28)
- bump
@deckdeckgo/highlight-code
peer dependency requirement tov2.4.0
Inherit @deckdeckgo/highlight-code
v2.2.2:
- display a
console.error
if the language is not supported
- support alias (such as
html
formarkup
) - load alias required scripts
- required scripts loading race condition
- ability to remove the 3 dots in the window (#21)
- IE11, Edge 16-18 and Safari 10 not supported
P.S.: Actually, I am not sure these were ever supported, but at least now, it is clear they are not 😉.
- load required scripts for prismjs / cannot highlight code language
php
(@deckdeckgo#848)
- bump highlight-code dependencies to last version including reference to most recent prismjs
- update readme for
gatsby-plugin-mdx
(#17)
- trim the value of the generated html node (#16)
- update highlight code component with a default overflow-y set to
auto
instead ofscroll
- image tag src attribute to full URL path (#14)
- improve line numbers color and background (inherit terminal's background and color of the code's comments)
- themes for the terminal carbon (#12)
head.querySelector
build errors (#10)
- update
@deckdeckgo/highlight-code
for not loaded languages (#9)
- update
@deckdeckgo/highlight-code
peer dependencies version (#7)
- add plugin config for
lineNumbers
andeditable
(#7) - Prettier to format project's code
- upgrade Web Component
@deckdeckgo/highlight-code
with CSS import fix
- upgrade Web Component
@deckdeckgo/highlight-code
- introduces the option to select the
terminal
display