Skip to content

Commit 4bdecf7

Browse files
authored
Merge pull request mblink#6 from mblink/handle-tables-render
handle rendering of table diffs properly
2 parents 41b6cdb + 40a8020 commit 4bdecf7

File tree

8 files changed

+361
-48
lines changed

8 files changed

+361
-48
lines changed

dist/htmldiff.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ declare type Token = {
2929
str: string;
3030
key: string;
3131
styles: string[];
32+
tableTags: string[];
3233
};
3334
/**
3435
* Creates a token that holds a string and key representation. The key is used for diffing
@@ -38,7 +39,7 @@ declare type Token = {
3839
*
3940
* @return {Object} A token object with a string and key property.
4041
*/
41-
export declare function createToken(currentWord: string, currentStyleTags: string[]): Token;
42+
export declare function createToken(currentWord: string, currentStyleTags: string[], currentTableTags: string[]): Token;
4243
declare type Match = {
4344
segment: Segment;
4445
length: number;

dist/htmldiff.js

Lines changed: 66 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/htmldiff.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)