
com.sparrow.markdown.mark.MARK Maven / Gradle / Ivy
The newest version!
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.sparrow.markdown.mark;
import com.sparrow.protocol.constant.Constant;
public enum MARK {
H1(Constant.ENTER_TEXT_N + "# ", Constant.ENTER_TEXT_N, "%1$s
"),
H2(Constant.ENTER_TEXT_N + "## ", Constant.ENTER_TEXT_N, "%1$s
"),
H3(Constant.ENTER_TEXT_N + "### ", Constant.ENTER_TEXT_N, "%1$s
"),
H4(Constant.ENTER_TEXT_N + "#### ", Constant.ENTER_TEXT_N, "%1$s
"),
H5(Constant.ENTER_TEXT_N + "##### ", Constant.ENTER_TEXT_N, "%1$s
"),
H6(Constant.ENTER_TEXT_N + "###### ", Constant.ENTER_TEXT_N, "%1$s
"),
HORIZONTAL_LINE(Constant.ENTER_TEXT_N, Constant.ENTER_TEXT_N + "---" + Constant.ENTER_TEXT_N, "
%1$s
"),
QUOTE(Constant.ENTER_TEXT_N + ">", Constant.ENTER_TEXT_N + Constant.ENTER_TEXT_N, "%1$s
"),
TAB(Constant.ENTER_TEXT_N + Constant.ENTER_TEXT_N + " ", null, "%1$s
"),
CHECK_BOX(Constant.ENTER_TEXT_N + "- [ ] ", Constant.ENTER_TEXT_N, ""),
DISABLE_CHECK_BOX(Constant.ENTER_TEXT_N + "- [x] ", Constant.ENTER_TEXT_N, ""),
CODE(Constant.ENTER_TEXT_N + "```" + Constant.ENTER_TEXT_N, Constant.ENTER_TEXT_N + "```" + Constant.ENTER_TEXT_N, "%1$s
"),
HIGHLIGHT("==", "==", "%1$s"),
UNDERLINE("++", "++", "%1$s"),
ERASURE("~~", "~~", "%1$s"),
ITALIC("*", "*", "%1$s"),
LITERARY("", null, "%1$s"),
BOLD("**", "**", "%1$s"),
IMAGE("
"),
HYPER_LINK("[", ")", "%2$s"),
ORDERED_LIST(Constant.ENTER_TEXT_N + "1. ", null, null),
UNORDERED_LIST(Constant.ENTER_TEXT_N + "- ", null, null),
TABLE(Constant.ENTER_TEXT_N, null, null);
private String start;
private String end;
private String format;
public String getStart() {
return start;
}
public String getEnd() {
return end;
}
public String getFormat() {
return format;
}
MARK(String start, String end, String format) {
this.start = start;
this.end = end;
this.format = format;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy