rapier-markdown-kit 1.1.4 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
22
 
23
23
  Files under this licence carry `SPDX-License-Identifier: MIT` in their first lines: the standard's
24
- grammar, marks and reference style (`spec/md-layout.mjs`, `spec/md-marks.mjs`, `spec/markdown-style.css`), the layout model and line planner
24
+ grammar, marks and reference style (`spec/md-layout.mjs`, `spec/md-marks.mjs`, `spec/flowchart.mjs`, `spec/markdown-style.css`), the layout model and line planner
25
25
  (`layout/model.mjs`, `layout/line-plan.mjs`), the Will grammar (`agent/will.mjs`), the picture appendix reader and writer
26
26
  (`spec/md-assets.mjs`), the two shared-page reference readers (`tools/read-shared-page.mjs`,
27
27
  `tools/read-shared-page.py`), and the host helper `packages/rapier-embed/embed.mjs`. The vendored Pretext (`agent/vendor/pretext`) and micromark carry their
package/README.md CHANGED
@@ -64,6 +64,7 @@ below belongs to the example, not to the package API.
64
64
  The example renders trusted Markdown, including its HTML. It demonstrates core Markdown, GFM tables,
65
65
  an aligned paragraph, a sized picture, a named text colour and a page break. Tasks,
66
66
  footnotes and other extensions use the caller's Markdown plugins; details use ordinary HTML.
67
+ In a Rapier page, supported Mermaid flowchart fences also draw offline in Rapier's look, so an agent can write a fence or use figures. The kit itself does not render diagrams.
67
68
  The complete markup contract, including callouts, diagrams, math and image wrapping, is
68
69
  [Reference style](https://github.com/jackskip22/rapier/blob/main/docs/markdown-standard.md#reference-style).
69
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapier-markdown-kit",
3
- "version": "1.1.4",
3
+ "version": "1.1.10",
4
4
  "description": "Read, write and style Self-contained Markdown: the universal stylesheet, picture layout, text marks, picture appendix, line planner and Will/1 markers. MIT, no dependencies.",
5
5
  "author": "Jack Skipworth",
6
6
  "license": "MIT",
package/style.css CHANGED
@@ -159,6 +159,7 @@
159
159
  The same class reaches rendered blocks and source previews: the owner
160
160
  marks each admitted drawing `rapier-diagram`, which remains stable when export namespaces
161
161
  local SVG IDs and references. */
162
+ :where(.md-render) svg.rapier-native-flowchart{display:block;margin-inline:auto;height:auto}
162
163
  :where(.md-render) svg.rapier-diagram{
163
164
  display:block;margin-inline:auto;height:auto;
164
165
  font-family:var(--md-font-sans)!important;
@@ -334,7 +335,7 @@
334
335
  /* Paper cannot be scrolled sideways, so on paper a diagram, and a wide drawing, go back to fitting the page. */
335
336
  @media print{
336
337
  :where(.md-render) .diagram-block{overflow:visible!important}
337
- :where(.md-render) svg.rapier-diagram{width:auto!important;max-width:100%!important}
338
+ :where(.md-render) svg.rapier-diagram,:where(.md-render) svg.rapier-native-flowchart{width:auto!important;max-width:100%!important}
338
339
  .md-render img[data-md-drawing]{min-width:0!important}
339
340
  .md-render :has(>img[data-md-drawing],>a>img[data-md-drawing]){overflow:visible!important}
340
341
  }