All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.houbb.md2html.core.Md2HtmlContext Maven / Gradle / Ivy

package com.github.houbb.md2html.core;

import com.github.houbb.md2html.api.IMd2HtmlContext;
import com.github.houbb.md2html.support.converter.IConverter;

/**
 * @author binbin.hou
 * @since 0.0.1
 */
public class Md2HtmlContext implements IMd2HtmlContext {

    private String markdown;

    private IConverter converter;

    public static Md2HtmlContext newInstance() {
        return new Md2HtmlContext();
    }

    public String markdown() {
        return markdown;
    }

    public Md2HtmlContext markdown(String markdown) {
        this.markdown = markdown;
        return this;
    }

    @Override
    public IConverter converter() {
        return converter;
    }

    public Md2HtmlContext converter(IConverter converter) {
        this.converter = converter;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy