import { hasParentHeading } from "./YfmHeadingSpecs/utils.js";
import { toHeading } from "./commands.js";
export const headingAction = (level) => {
    const cmd = toHeading(level);
    return {
        isActive: hasParentHeading(level),
        isEnable: cmd,
        run: cmd,
    };
};
//# sourceMappingURL=actions.js.map
