convert_content


Description:

protected string convert_content (Bytes content, string content_type)

Convert content based on Content-Type and format property. Uses structured if/else for Content-Type matching (Vala doesn't support string switches). Sets this.result_format to the actual result type: markdown, html, json, text, or base64.

Parameters:

content

The content bytes

content_type

The detected Content-Type

Returns:

Converted content as string