[%# List of all markup formats and their aliases, for developers. (Normal users don't need all these details, and should learn a subset of this stuff from a faq page.) Authors: Nick Fagerlund Copyright (c) 2020 by Dreamwidth Studios, LLC. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. For a copy of the license, please reference 'perldoc perlartistic' or 'perldoc perlgpl'. -%] [%- CALL dw.active_resource_group( "foundation" ) -%] [%- sections.title = "Markup Formats" -%]

About Formats

Dreamwidth supports a handful of different markup formats for user-submitted text like entries and comments. The format ID is stored alongside the text of each item, and it determines how we transform the user's raw text when displaying it on the web.

Some formats have multiple versions — we sometimes want to change how the markup rules work going forward, so we retain the old versions to preserve any content written before the changes took effect.

Some formats also have aliases, either to preserve some existing behavior or as a convenience for requesting the current version of a format. When content is submitted with an aliased format, it gets saved as the canonical ID that the alias currently resolves to.

A subset of formats are marked as "active." Although any format can be used in contexts that accept a raw format ID, the web UI's format selectors only display the active formats. (When editing old content that already uses an inactive format, that format is also included in the UI.)

Contents

Active Formats

[% FOREACH format = active_formats -%] [% INCLUDE print_format %] [%- END -%]

Other Formats

[% FOREACH format = other_formats -%] [% INCLUDE print_format %] [%- END -%]
[%- BLOCK print_format -%]
[% format.id %]

[% format.description %]

Display Name:

[% format.name %]

[% IF format.features -%]
Features:

[% format.features %]

[%- END %] [% IF aliases.${format.id} -%]
Aliases:
[%- END %]
[%- END -%]