No description
Find a file
Roger Veciana Rovira ca6e05a6cd bump version
2025-06-04 23:10:23 +02:00
.github/workflows Update plugin name and installation instructions 2024-01-28 23:14:20 +01:00
.husky install git hooks 2024-03-22 22:44:28 +01:00
.vscode Allow chosing fractions in quantities. Prettier config. 2024-03-22 22:28:10 +01:00
src Fix details in scale, add test 2025-06-04 23:10:01 +02:00
test/__mocks__ Fix details in scale, add test 2025-06-04 23:10:01 +02:00
.editorconfig Initial commit 2024-01-19 14:48:26 +01:00
.eslintrc Update i18n and add svelte-i18next package 2024-01-21 20:26:18 +01:00
.gitignore upgrade to svelte 5 2025-06-03 23:15:50 +02:00
.npmrc Initial commit 2024-01-19 14:48:26 +01:00
.prettierignore Update Prettier configuration and ESLint rules 2024-01-21 14:24:15 +01:00
.prettierrc Update Prettier configuration and ESLint rules 2024-01-21 14:24:15 +01:00
eslint.config.ts upgrade to svelte 5 2025-06-03 23:15:50 +02:00
header.png Fix details in scale, add test 2025-06-04 23:10:01 +02:00
LICENSE upgrade to svelte 5 2025-06-03 23:15:50 +02:00
manifest.json bump version 2025-06-04 23:10:23 +02:00
package-lock.json 0.1.0 2025-06-04 23:10:23 +02:00
package.json 0.1.0 2025-06-04 23:10:23 +02:00
README.md Fix details in scale, add test 2025-06-04 23:10:01 +02:00
styles.css Fix details in scale, add test 2025-06-04 23:10:01 +02:00
tsconfig.json upgrade to svelte 5 2025-06-03 23:15:50 +02:00
version-bump.mjs Initial commit 2024-01-19 14:48:26 +01:00
versions.json bump version 2025-06-04 23:10:23 +02:00
vite.config.mjs upgrade to svelte 5 2025-06-03 23:15:50 +02:00
vitest.config.ts Fix details in scale, add test 2025-06-04 23:10:01 +02:00

License: MIT

Cooklang

This plugin allows you to edit and view recipes written in the Cooklang format.

Screenshot

Installation

  • You can find this plugin in the Community Plugins section inside the Settings.
  • To develop, you can download the code into the .obsidian/plugins folder in a vault and run npm install and npm run dev to see the changes.

Features

  • Multi language: The titles for the sections (i.e. ingredients, cookware and so on) will be translated into the recipe language or the one configured in the Obsidian settings

  • Scale quantities: The slider in the ingredients part allows multiplying or dividing the amounts

Searching

Obsidian won't search files that aren't of the extension *.md by default. Since cooklang has the .cook extension, any search will gnore the files, which is really impractical. Fortuntely, there's a workaround:

  • Install the omnisearch plugin
  • Open its settings
  • Add the word cook at the section Additional TEXT files to index

The search has to be done from the sidebar search icon, but it works perfectly.

Changelog

  • 0.0.10: Choose quantities as fractions or decimals
  • 0.0.9: Support webp images, add languages
  • 0.0.8: Initial version. Can edit, view, and select the language

Acknowledgments

  • This plugin is obviously inspired by cooklang-obsidian by deathau. I wanted to learn how to code for Obsidian and add multi-language capabilities to the Cooklang plugin.

  • The plugin is using cooklang-ts, which passes all the tests and seems better than the other JavaScript alternatives.