From 335015d837230f79fc4c2886ebfa4b4057fc2a5b Mon Sep 17 00:00:00 2001 From: Matia <38083522+mattcroat@users.noreply.github.com> Date: Tue, 7 Feb 2023 01:15:31 +0100 Subject: [PATCH] docs(utils/defer): fix code highlighting (#5376) --- contributors.yml | 1 + docs/utils/defer.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contributors.yml b/contributors.yml index bbd69fa56d3..4655b9341d9 100644 --- a/contributors.yml +++ b/contributors.yml @@ -490,3 +490,4 @@ - mitchelldirt - krolebord - panteliselef +- mattcroat \ No newline at end of file diff --git a/docs/utils/defer.md b/docs/utils/defer.md index e5f91366f10..79f1ca0ea3d 100644 --- a/docs/utils/defer.md +++ b/docs/utils/defer.md @@ -7,7 +7,7 @@ toc: false This is a shortcut for creating a streaming/deferred response. It assumes you are using `utf-8` encoding. From a developer perspective it behaves just like [`json()`][json], but with the ability to transport promises to your UI components. -```ts lines=[2,5,10] +```ts lines=[1,7-10] import { defer } from "@remix-run/node"; // or cloudflare/deno export const loader = async () => {