### Folder Note Setup in Markdown Source: https://context7.com/make-md/makemd-docs/llms.txt Describes how to set up and use folder notes in MakeMD for hierarchical organization. It covers transforming a regular note into a folder and resetting the view to its default state. ```Markdown # Folder Note Setup ## Default View Folder note is the default space view for organizing nested notes ## Converting Note to Folder 1. Right-click on any note 2. Select "Transform into Folder" 3. Note now functions as a folder container ## Resetting View 1. Click more options beside "Add Property" 2. Click "Reset View" to restore default ``` -------------------------------- ### Formula Function Examples: Property Access, String, Number, Date Source: https://context7.com/make-md/makemd-docs/llms.txt Examples of using formula functions for accessing properties, manipulating strings, converting numbers, and performing date operations. Includes functions like `prop()`, `slice()`, `toNumber()`, `now()`, `dateAdd()`, and `formatDate()`. ```python # Formula Function Examples ## Property Access prop("property_name") # Get value of any property ## String Functions slice("hello world", 0, 5) # "hello" substring("hello", 1, 4) # "ell" startsWith("hello", "he") # true contains("hello world", "world") # true replace("hello", "l", "x") # "hexlo" replaceAll("hello", "l", "x") # "hexxo" lower("HELLO") # "hello" upper("hello") # "HELLO" repeat("ab", 3) # "ababab" test("hello123", "[0-9]+") # true split("a,b,c", ",") # ["a", "b", "c"] ## Number Functions ttoNumber("42") # 42 pad(7, 3, "0") # "007" ## Date Functions now() # Current date year(prop("date")) # 2024 month(prop("date")) # 6 day(prop("date")) # 15 hour(prop("date")) # 14 minute(prop("date")) # 30 week(prop("date")) # 24 dateAdd(now(), 7, "days") # Date + 7 days dateSubtract(now(), 1, "months") # Date - 1 month dateBetween(date1, date2, "days") # Days between dates formatDate(now(), "YYYY-MM-DD") # "2024-06-15" parseDate("2024-06-15") # Date object earliest(prop("dates")) # Earliest date in list latest(prop("dates")) # Latest date in list dateRange(prop("dates"), "days") # Range in days ``` -------------------------------- ### Configure Relations, Aggregates, and Formulas Source: https://context7.com/make-md/makemd-docs/llms.txt Guides for setting up advanced property types: Relations for linking contexts, Aggregates for calculations on related data, and Formulas for computed values. Relations can be set to sync two-way. Aggregate functions include Sum, Average, Count, Min, Max, and date-specific operations. Formulas utilize a variety of built-in functions. ```markdown # Advanced Property Configuration ## Relations 1. Create new Relation property 2. Select target context for relationship 3. Enable "Two-way" to sync in both contexts ## Aggregates 1. Create new Aggregate property 2. Select relation property as source 3. Choose property from related context 4. Select aggregate function: | Function | Type | Description | |-----------------------|--------|------------------------------------------| | Values | any | All values from related items | | Sum | number | Sum of all numbers | | Average | number | Average of all numbers | | Median | number | Median of all numbers | | Count | any | Number of items | | Count Values | any | Total values in related property | | Count Uniques | any | Unique values count | | Percentage Empty | any | % of empty properties | | Percentage Not Empty | any | % of non-empty properties | | Min | number | Smallest number | | Max | number | Largest number | | Range | number | Difference between max and min | | Earliest | date | Earliest date | | Latest | date | Latest date | | Date Range | date | Difference between latest and earliest | ## Formulas 1. Create new Formula property 2. Click "Edit Formula" 3. Use formula helper or reference functions ``` -------------------------------- ### Property Access Source: https://github.com/make-md/makemd-docs/blob/main/References/Formula.md Get the value of a property using the 'prop' function. ```APIDOC ## GET /functions/prop ### Description Get the value of a property. ### Method GET ### Endpoint /functions/prop ### Parameters #### Query Parameters - **property** (text) - Required - The name of the property to retrieve. ### Response #### Success Response (200) - **output** (any) - The value of the requested property. #### Response Example ```json { "output": "property_value" } ``` ``` -------------------------------- ### List Operations Source: https://github.com/make-md/makemd-docs/blob/main/References/Formula.md Functions for working with lists, including checking emptiness, getting length, and finding unique values. ```APIDOC ## GET /functions/empty ### Description Check if a list is empty. ### Method GET ### Endpoint /functions/empty ### Parameters #### Query Parameters - **value** (any) - Required - The list to check. ### Response #### Success Response (200) - **output** (boolean) - True if the list is empty, false otherwise. #### Response Example ```json { "output": true } ``` ## GET /functions/length ### Description Get the number of elements in a list. ### Method GET ### Endpoint /functions/length ### Parameters #### Query Parameters - **list** (any-multi) - Required - The list to get the length of. ### Response #### Success Response (200) - **output** (number) - The number of elements in the list. #### Response Example ```json { "output": 5 } ``` ## GET /functions/values ### Description Get the number of values in a list. ### Method GET ### Endpoint /functions/values ### Parameters #### Query Parameters - **list** (any-multi) - Required - The list to count values from. ### Response #### Success Response (200) - **output** (number) - The number of values in the list. #### Response Example ```json { "output": 5 } ``` ## GET /functions/uniques ### Description Get the number of unique values in a list. ### Method GET ### Endpoint /functions/uniques ### Parameters #### Query Parameters - **list** (any-list) - Required - The list to find unique values in. ### Response #### Success Response (200) - **output** (number) - The count of unique values in the list. #### Response Example ```json { "output": 3 } ``` ``` -------------------------------- ### List Functions in MakeMD Source: https://context7.com/make-md/makemd-docs/llms.txt Provides a set of functions for manipulating lists, including getting length, accessing elements, combining, sorting, filtering, and mapping lists. These functions are essential for data processing within MakeMD. ```MakeMD length(prop("items")) # Number of items first(prop("list")) # First element last(prop("list")) # Last element at(prop("list"), 2) # Element at index 2 concat(list1, list2) # Combined list sort(prop("list")) # Sorted list reverse(prop("list")) # Reversed list join(prop("tags"), ", ") # "tag1, tag2, tag3" includes(prop("list"), "value") # true/false filter(prop("list"), condition) # Filtered list map(prop("list"), formula) # Transformed list find(prop("list"), condition) # First matching element findIndex(prop("list"), condition) # Index of first match some(prop("list"), condition) # Any match true? every(prop("list"), condition) # All match true? flat(prop("nested_list")) # Flattened list uniques(prop("list")) # Count of unique values values(prop("list")) # Count of values range(prop("numbers")) # Max - Min ``` -------------------------------- ### Space View Configuration in Markdown Source: https://context7.com/make-md/makemd-docs/llms.txt Details the configuration of space views in MakeMD, including how to open them and the various block types available. It covers adding blocks, links, and configuring button actions. ```Markdown # Space View Configuration ## Opening Space View Find space in Navigator > Open directly ## Available Block Types | Block | Description | |-----------|-----------------------------------------------| | Note | Embed a note in your space view | | List View | Context database view (customizable source) | | Divider | Visual separator | | Image | Resizable image | | Button | Action trigger (run command or open link) | | Label | Text headings and titles | | Sticker | Decorative labels | | Rating | Visual rating display | | Toggle | Collapsible content | | Progress | Progress visualization | ## Adding Blocks 1. Hover over any block 2. Click "+" to add block below ## Adding Links Drag and drop from context views into space ## Button Actions 1. Select Button block 2. Set label and icon 3. Choose action type: "Run Command" or "Open Link" 4. Configure target command or link ``` -------------------------------- ### Path Functions in MakeMD Source: https://context7.com/make-md/makemd-docs/llms.txt Provides utilities for working with file paths and spaces within MakeMD. Functions like `path`, `spaceItems`, and `spaces` help in navigating and retrieving information about the project structure. ```MakeMD path("folder/note") # Get path object spaceItems("folder") # Items inside path spaces("note") # Spaces containing path ``` -------------------------------- ### Path and Variable Functions Source: https://github.com/make-md/makemd-docs/blob/main/References/Formula.md Functions for handling paths and defining variables. ```APIDOC ## POST /path/get ### Description Get the path object of a path. ### Method POST ### Endpoint /path/get ### Parameters #### Request Body - **path** (string) - Required - The path string. ### Request Example ```json { "path": "/users/123/posts" } ``` ### Response #### Success Response (200) - **result** (Path) - The path object. #### Response Example ```json { "result": { "parts": ["users", "123", "posts"] } } ``` ## POST /variable/let ### Description Define a variable to use in a formula. ### Method POST ### Endpoint /variable/let ### Parameters #### Request Body - **variable** (string) - Required - The name of the variable. - **value** (any) - Required - The value of the variable. - **formula** (any) - Required - The formula to evaluate using the variable. ### Request Example ```json { "variable": "x", "value": 10, "formula": "x * 2" } ``` ### Response #### Success Response (200) - **result** (any) - The result of the formula evaluation. #### Response Example ```json { "result": 20 } ``` ## POST /variable/lets ### Description Define multiple variables to use in a formula. ### Method POST ### Endpoint /variable/lets ### Parameters #### Request Body - **variable** (string) - Required - The name of the first variable. - **value** (any) - Required - The value of the first variable. - **...** (any) - Optional - Additional variable definitions. - **formula** (any) - Required - The formula to evaluate using the variables. ### Request Example ```json { "variable": "x", "value": 10, "y": 5, "formula": "x + y" } ``` ### Response #### Success Response (200) - **result** (any) - The result of the formula evaluation. #### Response Example ```json { "result": 15 } ``` ``` -------------------------------- ### Layout and Style Customization in Markdown Source: https://context7.com/make-md/makemd-docs/llms.txt Explains how to customize the layout and styling of blocks within MakeMD. This includes styling individual blocks, creating multi-column layouts by dragging, and grouping blocks for custom layouts. ```Markdown # Layout and Style Customization ## Styling Blocks 1. Hover over block 2. Click more options button 3. Customize: - Size, margins, padding - Border and background color - Font color 4. In sizing mode: drag edges to resize ## Multi-Column Layout 1. Drag block to right side of another block 2. Columns created automatically 3. Continue adding to create more columns ## Custom Group Layouts 1. Hold Shift + click select button on multiple blocks 2. Choose grouping option 3. Customize group with style options ``` -------------------------------- ### Applying Tag Contexts in Markdown Source: https://context7.com/make-md/makemd-docs/llms.txt Demonstrates how to apply tag contexts to folders in MakeMD. This process involves right-clicking a folder, selecting 'Apply to Items in Folder', and choosing 'Apply Tags' to add or remove tag contexts. ```Markdown # Applying Tag Contexts ## Setup 1. Right-click on a folder 2. Select "Apply to Items in Folder" 3. Choose "Apply Tags" 4. Select tag contexts to add or remove ## Benefits - Automatically adds all properties from tag context - Creates connections between different spaces - Maintains consistent property schemas across folders ``` -------------------------------- ### Variable Functions in MakeMD Source: https://context7.com/make-md/makemd-docs/llms.txt Allows for the definition and use of variables within MakeMD expressions. `let` defines a single variable, while `lets` supports multiple variable definitions for complex calculations. ```MakeMD let("x", 10, x * 2) # Define variable: 20 lets("x", 10, "y", 5, x + y) # Multiple variables: 15 ``` -------------------------------- ### Path Utility Functions Source: https://github.com/make-md/makemd-docs/blob/main/References/Formula.md Functions for interacting with file paths, such as retrieving items within a path or spaces a path is inside of. ```APIDOC ## Path Utility Functions ### Description Functions for interacting with file paths, such as retrieving items within a path or spaces a path is inside of. ### Endpoints #### Get Items in Path ##### Method GET ##### Endpoint `/path/items` ##### Parameters ###### Query Parameters - **path** (text) - Required - The path to retrieve items from. ##### Response ###### Success Response (200) - **items** (link-multi) - A list of items within the specified path. #### Get Spaces for Path ##### Method GET ##### Endpoint `/path/spaces` ##### Parameters ###### Query Parameters - **path** (text) - Required - The path to find containing spaces for. ##### Response ###### Success Response (200) - **spaces** (link-multi) - A list of spaces the path is inside of. ``` -------------------------------- ### String Utility Functions Source: https://github.com/make-md/makemd-docs/blob/main/References/Formula.md Functions for manipulating strings, such as padding. ```APIDOC ## String Utility Functions ### Description Functions for manipulating strings, such as padding. ### Endpoint #### Pad String ##### Method POST ##### Endpoint `/string/pad` ##### Parameters ###### Request Body - **number** (number) - Required - The number to pad. - **length** (number) - Required - The desired length of the padded string. - **text** (text) - Required - The text to use for padding. ##### Response ###### Success Response (200) - **paddedString** (text) - The padded string. ``` -------------------------------- ### Date and Time Functions Source: https://github.com/make-md/makemd-docs/blob/main/References/Formula.md Functions for retrieving the current date and extracting time components. ```APIDOC ## GET /functions/now ### Description Get the current date and time. ### Method GET ### Endpoint /functions/now ### Parameters None ### Response #### Success Response (200) - **output** (date) - The current date and time. #### Response Example ```json { "output": "2023-10-27T10:00:00Z" } ``` ## GET /functions/minute ### Description Get the minutes from a given date. ### Method GET ### Endpoint /functions/minute ### Parameters #### Query Parameters - **date** (date) - Required - The date from which to extract the minutes. ### Response #### Success Response (200) - **output** (number) - The minutes component of the date. #### Response Example ```json { "output": 30 } ``` ``` -------------------------------- ### String Manipulation Source: https://github.com/make-md/makemd-docs/blob/main/References/Formula.md Functions for manipulating strings, including slicing, testing, replacing, and case conversion. ```APIDOC ## GET /functions/slice ### Description Get a part of a text. ### Method GET ### Endpoint /functions/slice ### Parameters #### Query Parameters - **text** (text) - Required - The input string. - **start** (number) - Required - The starting index of the slice. - **end** (number) - Required - The ending index of the slice. ### Response #### Success Response (200) - **output** (text) - The sliced portion of the string. #### Response Example ```json { "output": "sliced_text" } ``` ## GET /functions/substring ### Description Get a substring of a string. ### Method GET ### Endpoint /functions/substring ### Parameters #### Query Parameters - **string** (text) - Required - The input string. - **start** (number) - Required - The starting index of the substring. - **end** (number) - Required - The ending index of the substring. ### Response #### Success Response (200) - **output** (text) - The extracted substring. #### Response Example ```json { "output": "substring_value" } ``` ## GET /functions/startsWith ### Description Check if a string starts with another string. ### Method GET ### Endpoint /functions/startsWith ### Parameters #### Query Parameters - **string** (text) - Required - The string to check. - **substring** (text) - Required - The substring to look for at the beginning. ### Response #### Success Response (200) - **output** (boolean) - True if the string starts with the substring, false otherwise. #### Response Example ```json { "output": true } ``` ## GET /functions/contains ### Description Check if a string contains another string. ### Method GET ### Endpoint /functions/contains ### Parameters #### Query Parameters - **string** (text) - Required - The string to search within. - **substring** (text) - Required - The substring to search for. ### Response #### Success Response (200) - **output** (boolean) - True if the string contains the substring, false otherwise. #### Response Example ```json { "output": true } ``` ## GET /functions/test ### Description Test a string with a regular expression. ### Method GET ### Endpoint /functions/test ### Parameters #### Query Parameters - **string** (text) - Required - The string to test. - **regex** (text) - Required - The regular expression to test against. ### Response #### Success Response (200) - **output** (boolean) - True if the string matches the regex, false otherwise. #### Response Example ```json { "output": true } ``` ## GET /functions/match ### Description Match a string with a regular expression. ### Method GET ### Endpoint /functions/match ### Parameters #### Query Parameters - **string** (text) - Required - The string to match. - **regex** (text) - Required - The regular expression to match with. ### Response #### Success Response (200) - **output** (boolean) - True if the string matches the regex, false otherwise. #### Response Example ```json { "output": true } ``` ## GET /functions/replace ### Description Replace the first occurrence of a string with another string. ### Method GET ### Endpoint /functions/replace ### Parameters #### Query Parameters - **string** (text) - Required - The original string. - **search** (text) - Required - The string to search for. - **replace** (text) - Required - The string to replace with. ### Response #### Success Response (200) - **output** (text) - The string with the first occurrence replaced. #### Response Example ```json { "output": "new_string" } ``` ## GET /functions/replaceAll ### Description Replace all occurrences of a string with another string. ### Method GET ### Endpoint /functions/replaceAll ### Parameters #### Query Parameters - **string** (text) - Required - The original string. - **search** (text) - Required - The string to search for. - **replace** (text) - Required - The string to replace with. ### Response #### Success Response (200) - **output** (text) - The string with all occurrences replaced. #### Response Example ```json { "output": "new_string" } ``` ## GET /functions/lower ### Description Convert a string to lowercase. ### Method GET ### Endpoint /functions/lower ### Parameters #### Query Parameters - **string** (text) - Required - The string to convert. ### Response #### Success Response (200) - **output** (text) - The lowercase version of the string. #### Response Example ```json { "output": "lowercase_string" } ``` ## GET /functions/upper ### Description Convert a string to uppercase. ### Method GET ### Endpoint /functions/upper ### Parameters #### Query Parameters - **string** (text) - Required - The string to convert. ### Response #### Success Response (200) - **output** (text) - The uppercase version of the string. #### Response Example ```json { "output": "UPPERCASE_STRING" } ``` ## GET /functions/repeat ### Description Repeat a string a specified number of times. ### Method GET ### Endpoint /functions/repeat ### Parameters #### Query Parameters - **string** (text) - Required - The string to repeat. - **times** (number) - Required - The number of times to repeat the string. ### Response #### Success Response (200) - **output** (text) - The repeated string. #### Response Example ```json { "output": "repeated_string" } ``` ## GET /functions/format ### Description Format a value to a string. ### Method GET ### Endpoint /functions/format ### Parameters #### Query Parameters - **value** (any) - Required - The value to format. ### Response #### Success Response (200) - **output** (text) - The string representation of the value. #### Response Example ```json { "output": "formatted_value" } ``` ``` -------------------------------- ### Logic Functions Source: https://github.com/make-md/makemd-docs/blob/main/References/Formula.md Functions for conditional logic, including 'if' and 'ifs'. ```APIDOC ## GET /functions/if ### Description Conditionally return one of two values based on a boolean condition. ### Method GET ### Endpoint /functions/if ### Parameters #### Query Parameters - **condition** (boolean) - Required - The condition to evaluate. - **ifTrue** (any) - Required - The value to return if the condition is true. - **ifFalse** (any) - Required - The value to return if the condition is false. ### Response #### Success Response (200) - **output** (any) - The returned value based on the condition. #### Response Example ```json { "output": "value_if_true" } ``` ## GET /functions/ifs ### Description Evaluate a series of conditions and return the value associated with the first true condition, or a default value if none are true. ### Method GET ### Endpoint /functions/ifs ### Parameters #### Query Parameters - **condition** (boolean) - Required - The first condition to evaluate. - **ifTrue** (any) - Required - The value to return if the first condition is true. - **...** (any) - Optional - Additional condition/value pairs. - **ifFalse** (any) - Required - The value to return if all preceding conditions are false. ### Response #### Success Response (200) - **output** (any) - The returned value based on the first true condition or the default. #### Response Example ```json { "output": "value_for_first_true_condition" } ``` ``` -------------------------------- ### Date Utility Functions Source: https://github.com/make-md/makemd-docs/blob/main/References/Formula.md Functions for extracting components of a date, manipulating dates, and comparing dates. ```APIDOC ## Date Utility Functions ### Description Functions for extracting components of a date, manipulating dates, and comparing dates. ### Endpoints #### Get Hour of Date ##### Method GET ##### Endpoint `/date/hour` ##### Parameters ###### Query Parameters - **date** (date) - Required - The date to extract the hour from. ##### Response ###### Success Response (200) - **hour** (number) - The hour of the date. #### Get Day of Date ##### Method GET ##### Endpoint `/date/day` ##### Parameters ###### Query Parameters - **date** (date) - Required - The date to extract the day from. ##### Response ###### Success Response (200) - **day** (number) - The day of the date. #### Get Date of Date ##### Method GET ##### Endpoint `/date/date` ##### Parameters ###### Query Parameters - **date** (date) - Required - The date to extract the date from. ##### Response ###### Success Response (200) - **date** (number) - The date of the date. #### Get Week of Date ##### Method GET ##### Endpoint `/date/week` ##### Parameters ###### Query Parameters - **date** (date) - Required - The date to extract the week from. ##### Response ###### Success Response (200) - **week** (number) - The week of the date. #### Get Month of Date ##### Method GET ##### Endpoint `/date/month` ##### Parameters ###### Query Parameters - **date** (date) - Required - The date to extract the month from. ##### Response ###### Success Response (200) - **month** (number) - The month of the date. #### Get Year of Date ##### Method GET ##### Endpoint `/date/year` ##### Parameters ###### Query Parameters - **date** (date) - Required - The date to extract the year from. ##### Response ###### Success Response (200) - **year** (number) - The year of the date. #### Add to Date ##### Method POST ##### Endpoint `/date/add` ##### Parameters ###### Request Body - **date** (date) - Required - The starting date. - **amount** (number) - Required - The amount to add. - **type** (text) - Required - The unit of time to add (e.g., 'day', 'month', 'year'). ##### Response ###### Success Response (200) - **date** (date) - The new date after adding the amount. #### Subtract from Date ##### Method POST ##### Endpoint `/date/subtract` ##### Parameters ###### Request Body - **date** (date) - Required - The starting date. - **amount** (number) - Required - The amount to subtract. - **type** (text) - Required - The unit of time to subtract (e.g., 'day', 'month', 'year'). ##### Response ###### Success Response (200) - **date** (undefined) - The new date after subtracting the amount. #### Date Between ##### Method POST ##### Endpoint `/date/between` ##### Parameters ###### Request Body - **date1** (date) - Required - The first date. - **date2** (date) - Required - The second date. - **type** (text) - Required - The unit of difference to calculate (e.g., 'day', 'month', 'year'). ##### Response ###### Success Response (200) - **difference** (number) - The difference between the two dates in the specified unit. #### Latest Date ##### Method POST ##### Endpoint `/date/latest` ##### Parameters ###### Request Body - **dates** (date-multi) - Required - A list of dates. ##### Response ###### Success Response (200) - **latestDate** (date) - The latest date from the list. #### Earliest Date ##### Method POST ##### Endpoint `/date/earliest` ##### Parameters ###### Request Body - **dates** (date-multi) - Required - A list of dates. ##### Response ###### Success Response (200) - **earliestDate** (date) - The earliest date from the list. #### Date Range ##### Method POST ##### Endpoint `/date/range` ##### Parameters ###### Request Body - **dates** (date-multi) - Required - A list of dates. - **type** (text) - Required - The type of range to calculate (e.g., 'days', 'months', 'years'). ##### Response ###### Success Response (200) - **range** (number) - The date range in the specified unit. #### Timestamp ##### Method GET ##### Endpoint `/date/timestamp` ##### Parameters ###### Query Parameters - **date** (date) - Required - The date to get the timestamp for. ##### Response ###### Success Response (200) - **timestamp** (number) - The timestamp of the date. ``` -------------------------------- ### Text Manipulation Functions Source: https://github.com/make-md/makemd-docs/blob/main/References/Formula.md Functions for splitting and formatting text. ```APIDOC ## POST /text/split ### Description Split text into a list using a separator. ### Method POST ### Endpoint /text/split ### Parameters #### Request Body - **text** (string) - Required - The text to split. - **separator** (string) - Required - The separator to use for splitting. ### Request Example ```json { "text": "This is a sample text", "separator": " " } ``` ### Response #### Success Response (200) - **result** (List) - The list of strings after splitting. #### Response Example ```json { "result": ["This", "is", "a", "sample", "text"] } ``` ## POST /date/format ### Description Format a date into text. ### Method POST ### Endpoint /date/format ### Parameters #### Request Body - **date** (Date) - Required - The date to format. - **format** (string) - Required - The desired date format (e.g., 'YYYY-MM-DD'). ### Request Example ```json { "date": "2023-10-27T10:00:00Z", "format": "MM/DD/YYYY" } ``` ### Response #### Success Response (200) - **result** (string) - The formatted date string. #### Response Example ```json { "result": "10/27/2023" } ``` ## POST /date/parse ### Description Transform date from text. ### Method POST ### Endpoint /date/parse ### Parameters #### Request Body - **date** (string) - Required - The date string to parse. ### Request Example ```json { "date": "2023-10-27" } ``` ### Response #### Success Response (200) - **result** (Date) - The parsed date object. #### Response Example ```json { "result": "2023-10-27T00:00:00Z" } ``` ``` -------------------------------- ### List Utility Functions Source: https://github.com/make-md/makemd-docs/blob/main/References/Formula.md Functions for processing lists, including sorting, reversing, joining, and checking for inclusion. ```APIDOC ## List Utility Functions ### Description Functions for processing lists, including sorting, reversing, joining, and checking for inclusion. ### Endpoints #### Range of Numbers ##### Method POST ##### Endpoint `/list/range` ##### Parameters ###### Request Body - **numbers** (number-multi) - Required - A list of numbers. ##### Response ###### Success Response (200) - **range** (number) - The difference between the largest and smallest numbers in the list. #### Get Element at Index ##### Method POST ##### Endpoint `/list/at` ##### Parameters ###### Request Body - **list** (any-list) - Required - The list to retrieve an element from. - **index** (number) - Required - The index of the element to retrieve. ##### Response ###### Success Response (200) - **element** (any) - The element at the specified index. #### First Element ##### Method POST ##### Endpoint `/list/first` ##### Parameters ###### Request Body - **list** (any-multi) - Required - The list to get the first element from. ##### Response ###### Success Response (200) - **firstElement** (any) - The first element of the list. #### Last Element ##### Method POST ##### Endpoint `/list/last` ##### Parameters ###### Request Body - **list** (any-multi) - Required - The list to get the last element from. ##### Response ###### Success Response (200) - **lastElement** (any) - The last element of the list. #### Concatenate Lists ##### Method POST ##### Endpoint `/list/concat` ##### Parameters ###### Request Body - **list1** (any-multi) - Required - The first list. - **list2** (any-multi) - Required - The second list. ##### Response ###### Success Response (200) - **concatenatedList** (any-multi) - The combined list. #### Sort List ##### Method POST ##### Endpoint `/list/sort` ##### Parameters ###### Request Body - **list** (any-multi) - Required - The list to sort. ##### Response ###### Success Response (200) - **sortedList** (any-multi) - The sorted list. #### Reverse List ##### Method POST ##### Endpoint `/list/reverse` ##### Parameters ###### Request Body - **list** (any-multi) - Required - The list to reverse. ##### Response ###### Success Response (200) - **reversedList** (any-multi) - The reversed list. #### Join List ##### Method POST ##### Endpoint `/list/join` ##### Parameters ###### Request Body - **list** (text-multi) - Required - The list of text elements to join. - **separator** (text) - Required - The separator to use between elements. ##### Response ###### Success Response (200) - **joinedString** (text) - The joined string. #### Includes Value ##### Method POST ##### Endpoint `/list/includes` ##### Parameters ###### Request Body - **list** (any-multi) - Required - The list to check. - **value** (any) - Required - The value to check for inclusion. ##### Response ###### Success Response (200) - **includes** (boolean) - True if the list includes the value, false otherwise. ``` -------------------------------- ### List Manipulation Functions Source: https://github.com/make-md/makemd-docs/blob/main/References/Formula.md Functions for finding, filtering, mapping, and transforming lists. ```APIDOC ## POST /list/find ### Description Find an element in a list based on a condition. ### Method POST ### Endpoint /list/find ### Parameters #### Request Body - **list** (List) - Required - The list to search within. - **condition** (boolean) - Required - A boolean expression to evaluate for each element. ### Request Example ```json { "list": [1, 2, 3, 4, 5], "condition": "item > 3" } ``` ### Response #### Success Response (200) - **result** (any) - The first element that satisfies the condition, or null if none found. #### Response Example ```json { "result": 4 } ``` ## POST /list/findIndex ### Description Find the index of an element in a list based on a condition. ### Method POST ### Endpoint /list/findIndex ### Parameters #### Request Body - **list** (List) - Required - The list to search within. - **condition** (boolean) - Required - A boolean expression to evaluate for each element. ### Request Example ```json { "list": [1, 2, 3, 4, 5], "condition": "item === 3" } ``` ### Response #### Success Response (200) - **result** (number) - The index of the first element that satisfies the condition, or -1 if none found. #### Response Example ```json { "result": 2 } ``` ## POST /list/filter ### Description Filter a list based on a condition. ### Method POST ### Endpoint /list/filter ### Parameters #### Request Body - **list** (List) - Required - The list to filter. - **condition** (boolean) - Required - A boolean expression to evaluate for each element. ### Request Example ```json { "list": [1, 2, 3, 4, 5], "condition": "item % 2 === 0" } ``` ### Response #### Success Response (200) - **result** (List) - A new list containing only the elements that satisfy the condition. #### Response Example ```json { "result": [2, 4] } ``` ## POST /list/map ### Description Change all the values in a list based on a formula. ### Method POST ### Endpoint /list/map ### Parameters #### Request Body - **list** (List) - Required - The list to transform. - **formula** (any) - Required - A formula to apply to each element. ### Request Example ```json { "list": [1, 2, 3], "formula": "item * 2" } ``` ### Response #### Success Response (200) - **result** (List) - A new list with transformed values. #### Response Example ```json { "result": [2, 4, 6] } ``` ## POST /list/some ### Description Check if some elements in a list satisfy a condition. ### Method POST ### Endpoint /list/some ### Parameters #### Request Body - **list** (List) - Required - The list to check. - **condition** (boolean) - Required - A boolean expression to evaluate for each element. ### Request Example ```json { "list": [1, 2, 3], "condition": "item > 2" } ``` ### Response #### Success Response (200) - **result** (boolean) - True if at least one element satisfies the condition, false otherwise. #### Response Example ```json { "result": true } ``` ## POST /list/every ### Description Check if every element in a list satisfies a condition. ### Method POST ### Endpoint /list/every ### Parameters #### Request Body - **list** (List) - Required - The list to check. - **condition** (boolean) - Required - A boolean expression to evaluate for each element. ### Request Example ```json { "list": [2, 4, 6], "condition": "item % 2 === 0" } ``` ### Response #### Success Response (200) - **result** (boolean) - True if all elements satisfy the condition, false otherwise. #### Response Example ```json { "result": true } ``` ## POST /list/flat ### Description Flatten a list of lists into a single list. ### Method POST ### Endpoint /list/flat ### Parameters #### Request Body - **list** (List) - Required - The list of lists to flatten. ### Request Example ```json { "list": [[1, 2], [3, 4], [5]] } ``` ### Response #### Success Response (200) - **result** (List) - The flattened list. #### Response Example ```json { "result": [1, 2, 3, 4, 5] } ``` ``` -------------------------------- ### Type Conversion Source: https://github.com/make-md/makemd-docs/blob/main/References/Formula.md Functions to convert values to numbers or strings. ```APIDOC ## GET /functions/toNumber ### Description Convert a value to a number. ### Method GET ### Endpoint /functions/toNumber ### Parameters #### Query Parameters - **value** (any) - Required - The value to convert. ### Response #### Success Response (200) - **output** (number) - The numeric representation of the value. #### Response Example ```json { "output": 123 } ``` ``` -------------------------------- ### Flow Block Usage in Markdown Source: https://context7.com/make-md/makemd-docs/llms.txt Introduces the concept of flow blocks in MakeMD, which facilitate seamless viewing and editing of connected notes directly within the current note through embedded content blocks. ```Markdown # Flow Block Usage ``` -------------------------------- ### Logic Functions in MakeMD Source: https://context7.com/make-md/makemd-docs/llms.txt Enables conditional execution and checks for empty fields within MakeMD. The `if` and `ifs` functions allow for branching logic, while `empty` checks if a field contains data. ```MakeMD if(condition, "yes", "no") # Conditional ifs(cond1, val1, cond2, val2, default) # Multiple conditions empty(prop("field")) # Check if empty ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.