In a world where everything from a ride to the airport to the way a child learns math has been disrupted, the written recipe — that fundamental bedrock of how we cook and share food — is undergoing its own makeover.

Like media and music, the recipe is being stretched and shattered, its conventions challenged by a generation that learned to cook from television chefs and YouTube videos. Websites like Allrecipes.com, with more than a half-million submissions from users and its ethos of public recipe rating, have democratized the form. Food bloggers have demystified it. In an age of commodity instruction, how to boil an omelet in a plastic bag can become an overnight sensation.

“One of the great things about recipes today is that you can assume a great amount of knowledge, which lets you go in a lot of directions,” said J. Kenji López-Alt, a Cook’s Illustrated veteran and Serious Eats columnist whose 950-page book, “The Food Lab: Better Home Cooking Through Science,” is selling swiftly.

There was a time when a cake recipe was learned at a grandmother’s elbow, codified on a worn recipe card or in a book with stained pages. It was a straightforward march: ingredients, instructions and maybe a tip or two scribbled in the margin.

Now, you can learn to bake a cake from a comic book, or by diving deep into a manifesto on leavening. You can pick the whimsical complexities of a New York City baker or the whimsical simplicity of a woman on a cattle ranch in Oklahoma.

The shift may seem subtle to someone who rarely picks up a pan, but editors, professional cooks and booksellers and others say recipes have become more open-ended and broader in their approach. Instructions have shifted away from formulas toward deeper explanations of technique, offering context and lyricism in ways Fannie Farmer could not have imagined.

The best recipes still get dinner on the table, but they also teach the reader to be a more intuitive cook, a cultural change that reflects a nation that is cooking better than it has in decades.

“The average person is a much better cook and so much more sophisticated than they once were,” said Wylie Dufresne, the New York chef who along with the New York author Peter Meehan is writing an exacting cookbook based on his restaurant, WD-50, which closed last November. “They deserve to know not only how but why.”

In other corners, the recipe is being blown up altogether. No-recipe recipes, in which pictures or short bursts of text are used to describe how to put together a dish, are in vogue in mainstream publications like Every Day With Rachael Ray and more-specialized cooking platforms like Food52.

Recipes also are taking their cues from novels, with artful prose woven into the steps. They are being turned into graphic novels, an approach pioneered by Amanda Cohen, who in 2012 published “Dirt Candy: A Cookbook: Flavor-Forward Food from the Upstart New York City Vegetarian Restaurant.”

“We wanted our recipes to be a little more free-form so they get people to think,” Cohen said. “People can learn to cook on the Internet. They can watch a video. There are 10 million pictures of our tomato tart online. You don’t need to have it in a book.”

This new way of thinking is not an erosion of standards; for traditional publishers, the importance of a well-tested recipe has grown. But editors say that the form the material takes has to change to match a generation of cooks who need less hand-holding and have access to better ingredients.

“I feel like 95 percent of the time, I am instructing copy editors to not follow the style guide and leave a little room, an uncertainty in the method, for people to discover how to cook,” said Jenny Wapner, executive editor of Ten Speed Press, which next year will publish a Korean comic book with recipes by the New York cartoonist Robin Ha.

The shift is not dissimilar to changes in how children are being taught math, said Jordana Rothman, whose book “Tacos: Recipes and Provocations,” with the chef Alex Stupak, will be released by Clarkson Potter on Tuesday. Math teachers are being encouraged to drop rote memorization of the multiplication tables in favor of teaching methods that emphasize flexibility and functionality. The recipe is no different.

“As a culture we are much more interested in how and why things are happening,” Rothman said. “People want a road map but they don’t want you to drive them there.”

Although many chefs may cringe at the thought, food television has had a profound effect on how people expect cooking instruction to be presented. A book without clever kitchen hacks seems flat. Personal perspective needs to infuse every part, not just the headnotes.

Consider two recent approaches to cochinita pibil, a dish from the Yucatán Peninsula in which pork is marinated in citrus and spices, wrapped in banana leaves and traditionally roasted in a hand-dug pit.

In her new book, Ruth Reichl takes a lyrical approach, adapting the recipe for the stovetop. She gently reminds the cook to leave enough time to defrost the banana leaves and to trim their frayed edges before heating them over a gas flame. “I love watching the way the color change ripples across the leaves, turning them shiny in a matter of seconds,” she writes.

Stupak, on the other hand, dispatches an oven method in a page but spends six more detailing his epic battle to dig an actual pit. The instructions include shovels, 70 red clay bricks and a reference to his recipe for handmade corn tortillas, of which you will need 60.

Celia Sack, who owns Omnivore Books in San Francisco observed the progression. “Recipe writing is getting better and better,” she said. “I don’t think recipes in the past were as full as they are now.”

She uses fish recipes to trace the arc. The classic wedding present book, “Joy of Cooking,” marched cooks home-economics style through a comprehensive litany of recipes for fish fillets dressed in butter, cream, lemon and parsley. It gave way to books like “The Silver Palate Cookbook,” which had more personal flair and global complexity in ingredients. Then came “The Zuni Cafe Cookbook,” in which Judy Rodgers carefully wrote about how and when to salt fish and how to encourage a perfect fumet from the protein in fish bones.

“Now there are all these books that tell you how to fit the fish recipe into a lifestyle,” Sack said.

As Food Network personalities, country music stars and actors flood the zone with frothy books filled with simple recipes, the cook who can write with a certain literary complexity is becoming a treasure.

“I am working with chefs who are really good writers so the story is not only very interesting from the content but it is a real pleasure to read them,” said Emilia Terragni, the publisher of Phaidon, which this month released “The Nordic Cookbook,” with 700 recipes from the Swedish chef and writer Magnus Nilsson.

Other recipe writers are going deep into science and technique, knowing their cooks will fortify their recipes with quick looks at the Internet for videos on how to braid challah or images of kung pao chicken as rendered by a restaurant in China.

The roots of the technique-first movement can be marked by Harold McGee’s “On Food and Cooking: The Science and Lore of the Kitchen,” which was published in 1984 and revised in 2004. Julia Child’s 1989 book “The Way to Cook,” which was organized by technique, not ingredient, popularized the style.

Michael Ruhlman picked up the baton in 2009, publishing “Ratio,” which tossed out recipes in favor of common ratios needed to make things like pie crusts, and went on to write a series of books that focused on specific techniques. His sauté book comes out in the spring.

“People are coming to realize it is not about the recipe,” he said. “They want to know how to think about food.”

Still, for traditionalists, there are experts who will not be creating a personal narrative around their spongecake recipe, or drawing the dish on a faux-stained page or making a science experiment out of it.

Dorie Greenspan, who wrote her first cookbook 25 years ago, and in 1993 wrote “Baking With Julia,” based on one of Child’s television shows, recently had some young photographers at her house to work on “Dorie’s Cookies,” which comes out next year. They browsed her bookshelves packed with books from Marcella Hazan, Edna Lewis and Craig Claiborne. They are the books from which a generation learned to cook.

“They were shocked there wasn’t a photo in any of them,” she said. “We learned to cook from the words and our own curiosity.”

She still writes all her recipes assuming the cook will have no other information, and in an encouraging way that anticipates any pitfalls.

There are those, too, who are holding out against the open-ended recipe. The chef Jacques Pépin is one of them.

“The recipe for me has to be exact and useful and usable,” he said.

Pépin’s new book, “Heart & Soul in the Kitchen,” is a compilation of the dishes he most often cooks at home. He insists that home cooks make a recipe at least once and preferably twice exactly as it is written. By the third time, they will understand it enough to improvise.

Chris Kimball, the founder of Cook’s Illustrated magazine and the television franchise “America’s Test Kitchen,” maintains that in the cacophonous bazaar of modern-day recipe writing, cooks will ultimately return to the straightforward and well-tested.

“The core thing should remain core and stripped down and useful and clear,” Kimball said. “I don’t think people want to read 400 words to make scrambled eggs.”