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 IStringOutputGenerator
diffrences
- The list of differences between texts.public String generateOutputInternal1(com.aspose.ms.System.Collections.Generic.List<DiffOperation> diffrences)
generateOutputInternal1
in interface IStringOutputGenerator
public 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 IFileOutputGenerator
diffrences
- 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 IFileOutputGenerator
public 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 IStringOutputGenerator
diffrences
- 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 IStringOutputGenerator
public 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 IFileOutputGenerator
diffrences
- 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 IFileOutputGenerator
Copyright © 2025 Aspose. All Rights Reserved.