Skip to content

Commit e1f6417

Browse files
committed
fix markdown formatting
1 parent f5e1437 commit e1f6417

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

README.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -303,30 +303,23 @@ index 0000001..0ddf2ba
303303
#### StimulusJS with TypeScript
304304

305305
```ts
306-
import { Controller } from "@hotwired/stimulus";
306+
import { Controller } from '@hotwired/stimulus';
307307

308-
import {
309-
Diff2HtmlUI,
310-
Diff2HtmlUIConfig,
311-
} from "diff2html/lib/ui/js/diff2html-ui-slim.js";
308+
import { Diff2HtmlUI, Diff2HtmlUIConfig } from 'diff2html/lib/ui/js/diff2html-ui-slim.js';
312309

313310
// Requires `yarn add highlight.js`
314-
import "highlight.js/styles/github.css";
315-
import "diff2html/bundles/css/diff2html.min.css";
311+
import 'highlight.js/styles/github.css';
312+
import 'diff2html/bundles/css/diff2html.min.css';
316313

317314
export default class extends Controller {
318315
connect(): void {
319-
const diff2htmlUi = new Diff2HtmlUI(
320-
this.diffElement,
321-
this.unifiedDiff,
322-
this.diffConfiguration
323-
);
316+
const diff2htmlUi = new Diff2HtmlUI(this.diffElement, this.unifiedDiff, this.diffConfiguration);
324317

325318
diff2htmlUi.draw();
326319
}
327320

328321
get unifiedDiff(): string {
329-
return this.data.get("unifiedDiff") || "";
322+
return this.data.get('unifiedDiff') || '';
330323
}
331324

332325
get diffElement(): HTMLElement {
@@ -336,7 +329,7 @@ export default class extends Controller {
336329
get diffConfiguration(): Diff2HtmlUIConfig {
337330
return {
338331
drawFileList: true,
339-
matching: "lines",
332+
matching: 'lines',
340333
};
341334
}
342335
}

0 commit comments

Comments
 (0)