Releases: zerodevx/zero-md
Releases · zerodevx/zero-md
v1.4.1
v2.0.0-rc.4
- Update
src
attribute change behaviour. - Add
tick()
function. - Refactor
goto()
function.
v2.0.0-rc.3
no-shadow
is immutable and must be set at element creation time- Update link handling logic
v2.0.0-rc.2
- Refactor dynamic script loading implementation
- Don't reflect
no-shadow
- Slightly improve language detection
v2.0.0-rc.1
V2 is a re-write. It is feature-complete, so all existing V1 features (including those from contributors - thank you!) should also be found here. Some breaking changes are introduced.
Component changes:
<xmp>
tag support is dropped; use<script type="text/markdown">
instead - #29 (comment)- De-dent is now opt-in via the
data-dedent
attribute like this:<script type="text/markdown" data-dedent>
<zero-md>
will always try to load fromsrc
attribute first; if it's falsy (nosrc
attribute,src
download fails,src
is an empty file etc.), then it falls-back on<script type="text/markdown">
.- The attributes
css-urls
,prism-url
andmarked-url
are removed.<zero-md>
only acceptssrc
,manual-render
andno-shadow
. <template>
tags should now be used only to house styles. That includes<link rel="stylesheet">
(for loading external stylesheets), and standard<style>
tags.- Custom styles can now be merged in using
<template data-merge="append | prepend">
- #34 - Global configurations are set on
window.ZeroMdConfig
object instead. - All relative URLs in markdown are now normalised to the
src
path - fixes #22 zero-md-marked-ready
andzero-md-prism-ready
custom events are dropped. Usezero-md-ready
instead.- There is now universal code highlighting for most languages, so a repeat of #23 should not happen.
<zero-md>
now automatically re-renders ifsrc
changes, andmanual-render
is not set - #26- However, changes to
<script type="text/markdown">
are not observed. This is best handled outside the remit of<zero-md>
through aMutationObserver
recipe. - A
zero-md-error
custom event is now emitted if non-fatal HTTP errors are detected - #31 - more will be written on this.
Tooling changes:
- Testing has undergone a major fat trim. None of that
web-component-tester
andselenium
andheadless-chrome
withbower
withfixture-element
and all that bloatware. Really, you just needmocha
andchai asserts
and run them off your browser. - Just write
standardjs
and move on. - Rollup to watch, serve and build.
- Totally remove all remnants of
HTMLImports
(good riddance) and fixedpackage.json
. ES imports should now work as expected - fixes #25 - Renamed
master
tomain
.