Files
prog-intro-2025/java/markup/Emphasis.java
me a1807aa84b
Some checks failed
Fast Reverse Tests / test (push) Failing after 17s
Markup Tests / test (push) Failing after 13s
Reverse Tests / test (push) Failing after 13s
Sum Tests / test (push) Failing after 13s
Word Stat Tests / test (push) Failing after 13s
Word Stat++ Tests / test (push) Failing after 13s
add solutions for hw7 (markup) and tests
2026-02-04 20:26:02 +05:00

24 lines
451 B
Java

package markup;
import java.util.List;
public class Emphasis extends AbstractMarkup {
public Emphasis(List<MarkupElement> elements) {
super(elements);
}
@Override
public void toMarkdown(StringBuilder sb) {
toMarkdown(sb, "*");
}
@Override
public void toHtml(StringBuilder sb) {
toHtml(sb, "em");
}
@Override
public void toTex(StringBuilder sb) {
toTex(sb, "\\emph");
}
}