Skip to content

:emoji: render support #196

@d9k

Description

@d9k

For example for Icon Shortcodes plugin.

See solution for another plugin: guopenghui/obsidian-quiet-outline#74 (comment)

import { getApi as getIconShortcodesApi } from "@aidenlx/obsidian-icon-shortcodes"

// . . . . .

const iconShortcodesApi = getIconShortcodesApi();
if (iconShortcodesApi) {
    label = iconShortcodesApi.postProcessor(
        label,
        (iconText: string) => iconShortcodesApi.getIcon(iconText).outerHTML
    );
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions