@liustack/markpress 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/dist/main.js +2 -2
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -569,7 +569,7 @@ const defaultStyles = {
569
569
  // Links — WeChat blue
570
570
  a: "color: #576b95; text-decoration: none;",
571
571
  // Images
572
- img: "max-width: 100%; height: auto; display: block; margin: 1.5em auto; border-radius: 10px;",
572
+ img: "max-width: 100%; height: auto; display: block; margin: 0 auto 1.5em; border-radius: 10px;",
573
573
  // Tables — minimalist: collapse borders, thin lines
574
574
  table: `${F} width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; border-radius: 2px;`,
575
575
  th: `${F} padding: 10px 12px; border-bottom: 1px solid #d2d2d7; font-weight: 600; text-align: left; color: #1d1d1f;`,
@@ -1029,7 +1029,7 @@ function normalizeTarget(input) {
1029
1029
  if (normalized === "x" || normalized === "twitter") return "x";
1030
1030
  throw new Error(`Unsupported target: ${input}. Supported targets: wechat, x, twitter`);
1031
1031
  }
1032
- program.name("markpress").description("Convert Markdown into editor-ready HTML (WeChat MP or X Articles)").version("0.3.0").requiredOption("-i, --input <path>", "Input Markdown file path").requiredOption("-o, --output <path>", "Output HTML file path").option("-t, --target <target>", "Render target: wechat | x | twitter", "wechat").option("-c, --copy", "Copy rendered HTML to system clipboard").action(async (options) => {
1032
+ program.name("markpress").description("Convert Markdown into editor-ready HTML (WeChat MP or X Articles)").version("0.3.1").requiredOption("-i, --input <path>", "Input Markdown file path").requiredOption("-o, --output <path>", "Output HTML file path").option("-t, --target <target>", "Render target: wechat | x | twitter", "wechat").option("-c, --copy", "Copy rendered HTML to system clipboard").action(async (options) => {
1033
1033
  try {
1034
1034
  const target = normalizeTarget(options.target);
1035
1035
  const renderer = target === "wechat" ? render$1 : render;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liustack/markpress",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "CLI for AI agents to convert Markdown into WeChat MP-ready HTML with inline styles, base64 images, and tag sanitization",
5
5
  "type": "module",
6
6
  "bin": {