Generators

fetch


The fetch generator fetches a URL (using unjs/ofetch) and inlines response body.

Example

Input

<!-- automd:fetch url="gh:unjs/automd/main/test/fixture/TEST.md" -->
<!-- /automd -->

Output

<!-- automd:fetch url="gh:unjs/automd/main/test/fixture/TEST.md" -->

## The Lazy Coder's Guide to Programming

Programming can be hard. But fear not! With the power of copy-paste, you can conquer any coding challenge without breaking a sweat. Just remember: if it works once, it'll work a thousand times. Who needs original code anyway?

When your code doesn't work, don't blame yourself. It's clearly the compiler's fault for not understanding your genius. Remember, the more error messages you get, the closer you are to becoming a programming master.

Why waste time solving problems when someone else has already done it for you? Stack Overflow is your best friend, your mentor, and your savior. Just make sure to upvote the answers that save your bacon.

<!-- /automd -->

Arguments

url
string

The URL to fetch from

You can start url with gh: to use github contents!