public class MarkdownDiffOutputGenerator extends Object implements IStringOutputGenerator, IFileOutputGenerator
Represents a class for generating markdown representation of texts differences. Because of the markdown syntax, it is not possible to show changes to whitespace characters. Selection of changes makes adding whitespace characters around formatting, otherwise markdown viewer will not correctly display the text. Deleted line breaks are indicated by - paragraph mark.
| Constructor and Description |
|---|
MarkdownDiffOutputGenerator()
Creates an instance of
MarkdownDiffOutputGenerator class. |
| Modifier and Type | Method and Description |
|---|---|
String |
generateOutput(List<List<DiffOperation>> diffrences)
Generates the output based on the differences between texts and saves it to a file.
|
void |
generateOutput(List<List<DiffOperation>> diffrences,
String targetFilePath)
Generates the output based on the differences between texts and saves it to a file.
|
String |
generateOutput1(List<DiffOperation> diffrences)
Generates the output based on the differences between texts and saves it to a file.
|
void |
generateOutput1(List<DiffOperation> diffrences,
String targetFilePath)
Generates the output based on the differences between texts and saves it to a file.
|
String |
generateOutputInternal(com.aspose.ms.System.Collections.Generic.List<com.aspose.ms.System.Collections.Generic.List<DiffOperation>> diffrences) |
void |
generateOutputInternal(com.aspose.ms.System.Collections.Generic.List<com.aspose.ms.System.Collections.Generic.List<DiffOperation>> diffrences,
String targetFilePath) |
String |
generateOutputInternal1(com.aspose.ms.System.Collections.Generic.List<DiffOperation> diffrences) |
void |
generateOutputInternal1(com.aspose.ms.System.Collections.Generic.List<DiffOperation> diffrences,
String targetFilePath) |
public MarkdownDiffOutputGenerator()
Creates an instance of MarkdownDiffOutputGenerator class.
public final String generateOutput1(List<DiffOperation> diffrences)
Generates the output based on the differences between texts and saves it to a file.
generateOutput1 in interface IStringOutputGeneratordiffrences - The list of differences between texts.public String generateOutputInternal1(com.aspose.ms.System.Collections.Generic.List<DiffOperation> diffrences)
generateOutputInternal1 in interface IStringOutputGeneratorpublic final void generateOutput1(List<DiffOperation> diffrences, String targetFilePath)
Generates the output based on the differences between texts and saves it to a file.
generateOutput1 in interface IFileOutputGeneratordiffrences - The list of differences between texts.targetFilePath - The path of the target file to save the output.public void generateOutputInternal1(com.aspose.ms.System.Collections.Generic.List<DiffOperation> diffrences, String targetFilePath)
generateOutputInternal1 in interface IFileOutputGeneratorpublic final String generateOutput(List<List<DiffOperation>> diffrences)
Generates the output based on the differences between texts and saves it to a file.
generateOutput in interface IStringOutputGeneratordiffrences - The list of differences between texts.public String generateOutputInternal(com.aspose.ms.System.Collections.Generic.List<com.aspose.ms.System.Collections.Generic.List<DiffOperation>> diffrences)
generateOutputInternal in interface IStringOutputGeneratorpublic final void generateOutput(List<List<DiffOperation>> diffrences, String targetFilePath)
Generates the output based on the differences between texts and saves it to a file.
generateOutput in interface IFileOutputGeneratordiffrences - The list of differences between texts.targetFilePath - The path of the target file to save the output.public void generateOutputInternal(com.aspose.ms.System.Collections.Generic.List<com.aspose.ms.System.Collections.Generic.List<DiffOperation>> diffrences, String targetFilePath)
generateOutputInternal in interface IFileOutputGeneratorCopyright © 2025 Aspose. All Rights Reserved.