package io.noties.markwon.sample;

import androidx.annotation.StringRes;

public enum Sample {

    // all usages of markwon without plugins (parse, render, setMarkwon, etc)
    CORE(R.string.sample_core),

    BASIC_PLUGINS(R.string.sample_basic_plugins),

    LATEX(R.string.sample_latex),

    CUSTOM_EXTENSION(R.string.sample_custom_extension),

    RECYCLER(R.string.sample_recycler),

    HTML(R.string.sample_html),

    SIMPLE_EXT(R.string.sample_simple_ext),

    CUSTOM_EXTENSION_2(R.string.sample_custom_extension_2),

    PRECOMPUTED_TEXT(R.string.sample_precomputed_text),

    PRECOMPUTED_FUTURE_TEXT(R.string.sample_precomputed_future_text),

    EDITOR(R.string.sample_editor),

    INLINE_PARSER(R.string.sample_inline_parser),

    HTML_DETAILS(R.string.sample_html_details),

    TASK_LIST(R.string.sample_task_list),

    IMAGES(R.string.sample_images),

    REMOTE_VIEWS(R.string.sample_remote_views),

    TABLE(R.string.sample_table);

    private final int textResId;

    Sample(@StringRes int textResId) {
        this.textResId = textResId;
    }

    @StringRes
    public int textResId() {
        return textResId;
    }
}
