Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/internal-initial-release.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/vfm-internal-utils-initial-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vivliostyle/vfm-internal-utils': major
---

Initial release
1 change: 0 additions & 1 deletion packages/internal/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/remark-footnote-dpub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"dependencies": {
"@types/hast": "^2.0.0",
"@types/unist": "^2.0.0",
"@vivliostyle/internal": "workspace:*",
"@vivliostyle/vfm-internal-utils": "workspace:*",
"hast-util-select": "^5.0.5",
"hastscript": "^7.2.0",
"mdast-util-to-hast": "^11.3.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/remark-footnote-dpub/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
buildElement,
type ElementFactory as FootnoteFactory,
HastPropertiesSchema,
} from '@vivliostyle/internal';
} from '@vivliostyle/vfm-internal-utils';
import type * as hast from 'hast';
import { selectAll } from 'hast-util-select';
import { h } from 'hastscript';
Expand All @@ -25,7 +25,7 @@ import type * as unist from 'unist';
import { u } from 'unist-builder';
import * as v from 'valibot';

export type { ElementFactory as FootnoteFactory } from '@vivliostyle/internal';
export type { ElementFactory as FootnoteFactory } from '@vivliostyle/vfm-internal-utils';

type ElementWithProps = hast.Element & {
properties: NonNullable<hast.Element['properties']>;
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-footnote-gcpm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"dependencies": {
"@types/hast": "^2.0.0",
"@vivliostyle/internal": "workspace:*",
"@vivliostyle/vfm-internal-utils": "workspace:*",
"hastscript": "^7.2.0",
"mdast-util-to-hast": "^11.3.0",
"unified": "^9.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/remark-footnote-gcpm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
type ElementFactory as FootnoteFactory,
HastPropertiesSchema,
type TagAwareH,
} from '@vivliostyle/internal';
} from '@vivliostyle/vfm-internal-utils';
import type * as hast from 'hast';
import { h } from 'hastscript';
import {
Expand All @@ -22,7 +22,7 @@ import {
import type unified from 'unified';
import * as v from 'valibot';

export type { ElementFactory as FootnoteFactory } from '@vivliostyle/internal';
export type { ElementFactory as FootnoteFactory } from '@vivliostyle/vfm-internal-utils';

// ---------------------------------------------------------------------------
// GCPM-specific types and schemas
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions packages/vfm-internal-utils/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @vivliostyle/vfm-internal-utils
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@vivliostyle/internal",
"name": "@vivliostyle/vfm-internal-utils",
"version": "0.0.0",
"description": "Internal shared machinery for VFM's own packages.",
"license": "Apache-2.0",
Expand All @@ -12,7 +12,7 @@
"repository": {
"type": "git",
"url": "git+https://github.com/vivliostyle/vfm.git",
"directory": "packages/internal"
"directory": "packages/vfm-internal-utils"
},
"files": [
"lib"
Expand Down
2 changes: 1 addition & 1 deletion packages/vfm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@types/hast": "^2.0.0",
"@types/mdast": "^3.0.0",
"@types/unist": "^2.0.0",
"@vivliostyle/internal": "workspace:*",
"@vivliostyle/vfm-internal-utils": "workspace:*",
"@vivliostyle/remark-footnote-dpub": "workspace:*",
"@vivliostyle/remark-footnote-gcpm": "workspace:*",
"@vivliostyle/remark-footnote-pandoc": "workspace:*",
Expand Down
5 changes: 4 additions & 1 deletion packages/vfm/src/plugins/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { type Handler as ToHastHandler } from 'mdast-util-to-hast';
import { table as defaultTableHandler } from 'mdast-util-to-hast/lib/handlers/table.js';
import { visit } from 'unist-util-visit';
import * as v from 'valibot';
import { buildElement, type ElementFactory } from '@vivliostyle/internal';
import {
buildElement,
type ElementFactory,
} from '@vivliostyle/vfm-internal-utils';

/** Column alignment carried on a GFM table cell. */
export type TableCellAlign = 'left' | 'center' | 'right';
Expand Down
48 changes: 29 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.