@weave-md/core
Advanced tools
+21
| MIT License | ||
| Copyright (c) 2025 weavepage | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
@@ -6,2 +6,3 @@ export interface Section { | ||
| body: string; | ||
| extra?: Record<string, unknown>; | ||
| } | ||
@@ -8,0 +9,0 @@ export type DisplayType = 'footnote' | 'sidenote' | 'margin' | 'overlay' | 'inline' | 'stretch' | 'panel'; |
+5
-5
| { | ||
| "name": "@weave-md/core", | ||
| "version": "0.3.0-alpha.0", | ||
| "version": "0.3.1-alpha.0", | ||
| "description": "Weave Markdown language contract - spec, schemas, types, and pure helpers", | ||
@@ -24,5 +24,2 @@ "type": "module", | ||
| }, | ||
| "scripts": { | ||
| "build": "tsc" | ||
| }, | ||
| "keywords": [ | ||
@@ -44,3 +41,6 @@ "weave", | ||
| "typescript": "^5.7.0" | ||
| }, | ||
| "scripts": { | ||
| "build": "tsc" | ||
| } | ||
| } | ||
| } |
@@ -43,2 +43,4 @@ # Frontmatter Extension | ||
| **Unknown Fields**: Implementations MUST preserve unknown YAML fields in frontmatter. This allows renderer-specific extensions and custom configuration without breaking conformance. Implementations MAY emit info-level messages for unknown fields. | ||
| ## Validation Rules | ||
@@ -50,3 +52,2 @@ | ||
| 2. **Error on duplicate `id`**: Multiple sections with the same `id` is invalid | ||
| 3. **Info on unknown fields**: Unknown frontmatter fields should emit info-level messages | ||
@@ -53,0 +54,0 @@ ## Examples |
+16
-2
@@ -5,3 +5,3 @@ # Weave Format | ||
| - **Text formatting** - Strikethrough, tables, autolink literals, and preformatted blocks | ||
| - **Text formatting** - Strikethrough, tables, autolink literals, task lists, and preformatted blocks | ||
| - **Mathematics** - Block and inline LaTeX rendering | ||
@@ -58,2 +58,16 @@ - **Media** - Images, galleries, audio, video, embeds, and voiceover | ||
| ### Task Lists | ||
| Create interactive checklists using bracket syntax in list items: | ||
| ```markdown | ||
| - [ ] Unchecked item | ||
| - [x] Checked item | ||
| - [X] Also checked (uppercase works) | ||
| ``` | ||
| **Implementation**: GFM-compatible / markdown-it / remark-gfm | ||
| **Behavior**: Renders as semantic checkboxes. Interactivity is implementation-defined. | ||
| ### Preformatted Text | ||
@@ -88,3 +102,3 @@ | ||
| **Rendering**: KaTeX or MathJax-based renderers | ||
| **Rendering**: KaTeX or MathJax-based renderers recommended | ||
@@ -91,0 +105,0 @@ ### Inline Math |
42418
3.95%23
4.55%673
0.15%