- map: fix: Geocoding failed because now requires user agent
- Fixed documentation link in metadata
- Empty release to solve packaging problems
- Dropped support for Python<3.8
- Use backslash \ to continue the headline on the next line
- New
figure
attributes:inline
: embeds the image as base64 encodedlocal
: turns a remote url image into a relative local resourcethumb
: reduces the size of the image, enlargeable by clicking
- Dropped support for Python<3.8
- Migrated to pyproject
- Upgrade notes:
- Image recommended css for lightbox has changed to enable thumbnailing
- Documentation corrections
- Third party generators can be registered by using project
metadata's entry points for
markdown.customblocks.generators
- New block types
wikipedia
: produces a linkcard for a lemmamastodon
: embed a mastodon postpeertube
: embed a peertube video
linkcard
:- Keyless values are added as classes to the top level element
- Extract descriptions from MediaWiki based sites (wikipedia...)
- Html class
squared
renamedside
, used to identify side images - Configurable CSS variables in the recommended stylesheet
- Improved image layout in the recommended styleshet
- Side image turns wide image on small devices
vimeo
:- Wrapping inside
div.video.vimeo
analog to other video inserts - Accepts exceding key and positional parameters like
container
- Wrapping inside
youtube
:- Fix: iframe border removed by default
- Tests passing
- Documentation fixes
- New documentation based on mkdocs
- New block types:
map
: to embed OSM mapsfacebook
: to embed facebook posts (draft: still privacy invasive)instagram
: to embed instagram posts (draft: still privacy invasive)
linkcard
: Links are openened in a new tab/window
- Figures open the image in a new window
- Figures lightbox visualization (requires some css)
- GDPR friendly embeds:
- youtube: Use youtube-nocookie.com to avoid youtube cookies
- vimeo: Use dnt=1 option to avoid vimeo cookies
- FIX: match trailing spaces after the header. Fixes #6
- Metadata fix: The license is Affero not MIT
- FIX: youtube custom classes were not added (PR #05, Alexey Leshchenko @leshchenko1979, thanks!)
- FIX: linkcard: link-card-site-icon class was set twice
- workflows for continuous integration and release
- documentation fixes
utils.Fetcher
: Helper for catched downloadsutils.PageInfo
: Page information retrieval helperutils.E
: Helper to generate HTML using hyperscript idiomutils.Markdown
: Helper to include markdown in hyperscriptlinkcard
: Example style emulating Wordpress' embedded linklinkcard
: Explicit image, description, title...linkcard
: Fix: relative links to images and iconslinkcard
: Removed half implemented embedimage flagtwitter
: Cache twitter info downloads
- Register a generator with a string like
'module.submodule:function'
- Support single quoted values
- Provide
ctx.config
fromextension_configs.customblocks.config
- New generators: vimeo, verkami, goteo
- admonition: title should be a
<p>
not a<div>
for ReST styles to work - youtube: responsive/fluid sizing
- documented all generators
- Improve documentation (parameter passing, toc...)
- Provide
ctx.metadata
to access Markdown.Meta (fromextra.meta
,full_yaml_metadata
... extensions) figure
: link to the image
- First public version
- Support for function based generators
- Default generator: container
- Example generators: admonition, twitter, youtube, figure, linkcard