Skip to content

Commit

Permalink
chore: fix lint (#1559)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Nov 12, 2024
1 parent a33e71a commit ce1af38
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions projects/editor/utils/legacy-converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ function migration(element: Element): void {
if (child.tagName === 'FONT') {
if (child.hasAttribute('size')) {
switch (child.getAttribute('size')) {
case '6': {
migrateHeading('h1', child);
case '2': {
migrateParagraph('13px', child);
break;
}
case '5': {
migrateHeading('h2', child);
case '3': {
migrateParagraph('15px', child);
break;
}

Expand All @@ -21,13 +21,13 @@ function migration(element: Element): void {
break;
}

case '3': {
migrateParagraph('15px', child);
case '5': {
migrateHeading('h2', child);
break;
}

case '2': {
migrateParagraph('13px', child);
case '6': {
migrateHeading('h1', child);
break;
}
default:
Expand Down

0 comments on commit ce1af38

Please sign in to comment.