(BLOCK (PARA (TEXT "The ") (FORMAT-QUOTE () (TEXT "plain")) (TEXT " encoding represents a zettel the same way it is stored in a file with an extension ") (LINK () (ZETTEL "00001005000000") (LITERAL-INPUT () ".zettel")) (TEXT ".")) (PARA (TEXT "Zettel with a ") (LINK () (ZETTEL "00001006020000#syntax") (TEXT "syntax")) (TEXT " value ") (LINK () (ZETTEL "00001008000000#zmk") (FORMAT-QUOTE () (TEXT "zmk"))) (TEXT " are typically stored in a file with the extension ") (LITERAL-INPUT () ".zettel") (TEXT ".") (SOFT) (TEXT "Storing zettel with other syntax values in a ") (LITERAL-INPUT () ".zettel") (TEXT " file is also possible, but not recommended.") (SOFT) (TEXT "In those cases, the zettel is stored in two files: one file (without a filename extension) contains the metadata, and the other stores the zettel content.")) (PARA (TEXT "These two cases are mirrored by specifying the required ") (LINK () (ZETTEL "00001012920800") (TEXT "part")) (TEXT " of a zettel:")) (UNORDERED () (BLOCK (PARA (TEXT "If part has the value ") (FORMAT-QUOTE () (TEXT "zettel")) (TEXT ", the full zettel, both metadata and content, is encoded.") (SOFT) (TEXT "This corresponds to storing a zettel in a single file with the extension ") (LITERAL-INPUT () ".zettel") (TEXT "."))) (BLOCK (PARA (TEXT "A part value of ") (FORMAT-QUOTE () (TEXT "meta")) (TEXT " encodes only the metadata of a zettel."))) (BLOCK (PARA (TEXT "A part value of ") (FORMAT-QUOTE () (TEXT "content")) (TEXT " (the default) encodes the raw content of a zettel.")))) (PARA (TEXT "If transferred via HTTP, the content type depends on the selected part:")) (UNORDERED () (BLOCK (PARA (TEXT "If part has the value ") (FORMAT-QUOTE () (TEXT "zettel")) (TEXT ", the content type is either ") (LITERAL-INPUT () "application/octet-stream") (TEXT " (for binary content) or a value derived from the ") (LITERAL-INPUT () "syntax") (TEXT " metadata."))) (BLOCK (PARA (TEXT "A part value of ") (FORMAT-QUOTE () (TEXT "content")) (TEXT " results in a content type is derived from the ") (LITERAL-INPUT () "syntax") (TEXT " metadata."))) (BLOCK (PARA (TEXT "A part value of ") (FORMAT-QUOTE () (TEXT "meta")) (TEXT " results in a content type ") (LITERAL-INPUT () "text/plain; charset=utf-8") (TEXT ".")))))