// Path: src/com/noticeditorteam/noticeditor/exceptions/ExportException.java
// public class ExportException extends RuntimeException {
// 
//     public ExportException(Throwable cause) {
//         super(cause);
//     }
// }


import com.noticeditorteam.noticeditor.exceptions.ExportException;
import com.noticeditorteam.noticeditor.model.*;
import com.vladsch.flexmark.html.HtmlRenderer;
import com.vladsch.flexmark.parser.Parser;
import java.io.File;
import java.io.IOException;
import java.util.regex.Matcher;
import javafx.scene.control.TreeItem;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.nodes.Node;
package com.noticeditorteam.noticeditor.io;


public class SingleHtmlExportStrategy implements ExportStrategy {

    private Parser mdParser;
    private HtmlRenderer htmlRenderer;

    public void setMarkdownParser(Parser parser) {
        this.mdParser = parser;
    }

    public void setHtmlRenderer(HtmlRenderer renderer) {
        this.htmlRenderer = renderer;
    }

    @Override
    public boolean export(File destDir, NoticeTree tree) throws ExportException {
        try {
            exportToHtmlPage(destDir, tree, "index");
// Path: src/com/noticeditorteam/noticeditor/exceptions/ExportException.java
// public class ExportException extends RuntimeException {
// 
//     public ExportException(Throwable cause) {
//         super(cause);
//     }
// }


// Path: src/com/noticeditorteam/noticeditor/io/SingleHtmlExportStrategy.java
import com.noticeditorteam.noticeditor.exceptions.ExportException;
import com.noticeditorteam.noticeditor.model.*;
import com.vladsch.flexmark.html.HtmlRenderer;
import com.vladsch.flexmark.parser.Parser;
import java.io.File;
import java.io.IOException;
import java.util.regex.Matcher;
import javafx.scene.control.TreeItem;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.nodes.Node;

package com.noticeditorteam.noticeditor.io;


public class SingleHtmlExportStrategy implements ExportStrategy {

    private Parser mdParser;
    private HtmlRenderer htmlRenderer;

    public void setMarkdownParser(Parser parser) {
        this.mdParser = parser;
    }

    public void setHtmlRenderer(HtmlRenderer renderer) {
        this.htmlRenderer = renderer;
    }

    @Override
    public boolean export(File destDir, NoticeTree tree) throws ExportException {
        try {
            exportToHtmlPage(destDir, tree, "index");
            return true;