@alvincrespo/hashnode-content-converter - v0.2.2
    Preparing search index...

    Interface MarkdownTransformerOptions

    Configuration options for markdown transformation.

    Based on analysis of real Hashnode export data, the primary transformation needed is removing align attributes from images. Additional optional cleanup transformations are provided for specific use cases.

    interface MarkdownTransformerOptions {
        convertCalloutsToBlockquotes?: boolean;
        removeAlignAttributes?: boolean;
        trimTrailingWhitespace?: boolean;
    }
    Index

    Properties

    convertCalloutsToBlockquotes?: boolean

    Whether to convert Hashnode callout divs to markdown blockquotes.

    false
    

    Hashnode exports may contain <div data-node-type="callout"> structures for highlighting content. Enable this to convert them to standard markdown blockquotes. Leave disabled if your target framework can style HTML in markdown.

    removeAlignAttributes?: boolean

    Whether to remove align attributes from images.

    true
    

    Hashnode exports include align="center", align="left", and align="right" attributes on markdown images. These are not standard markdown and should be removed.

    trimTrailingWhitespace?: boolean

    Whether to trim trailing whitespace from lines.

    false
    

    Some Hashnode exports contain trailing spaces (particularly after list items). These are harmless but can be cleaned up if desired.

    Note: Preserves exactly two trailing spaces (markdown hard line break syntax).