Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/changelog/markpub-parser
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Add rich content support for standard.site documents using the Markpub format.
4 changes: 4 additions & 0 deletions includes/class-atmosphere.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

\defined( 'ABSPATH' ) || exit;

use Atmosphere\Content_Parser\Markpub;
use Atmosphere\OAuth\Client;
use Atmosphere\Transformer\Document;
use Atmosphere\Transformer\Publication;
Expand Down Expand Up @@ -45,6 +46,9 @@ public function init(): void {
// Plugin integrations.
Load::init();

// Default content parser (Markpub).
\add_filter( 'atmosphere_content_parser', static fn() => new Markpub() );

// JSON preview for AT Protocol records.
\add_action( 'template_redirect', array( $this, 'preview' ) );

Expand Down
Loading