Skip to main content

validate_post_document_bytes

Function validate_post_document_bytes 

Source
pub fn validate_post_document_bytes(
    path_label: impl Into<String>,
    bytes: &[u8],
    collection: PostCollection,
) -> Result<PostDocument, ContentValidationErrors>
Expand description

Validate one Markdown post from raw bytes using the production default post byte limit and UTF-8 contract.