Closed lasuk closed 1 week ago
We’re exploring the most effective way to display Git diffs in our README, particularly for showcasing how TextLedger
minimizes changes and preserves file structure. Here are the possible ways we could approach this:
diff
Syntax in MarkdownWe can use GitHub's built-in diff
syntax to show Git changes directly in the README. This is straightforward, but note that it doesn’t support inline character-level changes (only whole lines). Here’s an example of how this would look:
- 4, 2024-05-24, 9991, 9994, USD, 888888.88, 450.45, OutRed, ledger 4,
+ 4, 2024-05-24, 9991, 9994, USD, 788888.88, 450.45, OutRed, ledger 4,
assets/
FolderAnother option is to manually capture Git diffs (like the one shown in the screenshot below) and store the images in an assets/
folder within the repository. We can then reference these images in the README.
We can commit the diffs to a separate Git branch and take advantage of GitHub's built-in image hosting (via issues or PR comments). Images hosted by GitHub can be referenced directly in the README.
TextLedger
class and its usage.TextLedger
.