{
  "name": "Capture Article as Markdown",
  "description": "Turn any article into clean, clutter-free Markdown you can paste straight into your notes, docs, or blog.",
  "tags": [
    "markdown",
    "clipboard",
    "articles",
    "notes",
    "research",
    "save"
  ],
  "type": "triggered",
  "nodes": [
    {
      "id": "sticky-intro",
      "position": {
        "x": 20,
        "y": 20
      },
      "data": {
        "color": "#fff266",
        "content": "📰 Capture an article as Markdown.\n\nPress Run on any page and this converts its content to clean Markdown, then copies it to your clipboard ready to paste — no account needed."
      },
      "type": "stickyNote",
      "width": 340,
      "height": 170
    },
    {
      "id": "trigger-when-started",
      "position": {
        "x": 100,
        "y": 260
      },
      "data": {
        "instance": {
          "id": "af-base-node:trigger:whenStarted"
        },
        "label": "When Started",
        "inputs": {},
        "parameters": {
          "notes": "Runs on the current page when you press Run."
        }
      },
      "type": "trigger"
    },
    {
      "id": "get-html",
      "position": {
        "x": 420,
        "y": 260
      },
      "data": {
        "instance": {
          "id": "af-base-node:basic:getAllHTMLNode"
        },
        "label": "Read the page HTML",
        "inputs": {
          "outputFieldName": "html"
        },
        "parameters": {
          "notes": "Grabs the page's HTML to convert."
        }
      },
      "type": "basic"
    },
    {
      "id": "to-markdown",
      "position": {
        "x": 740,
        "y": 260
      },
      "data": {
        "instance": {
          "id": "af-base-node:basic:markdown"
        },
        "label": "Convert to Markdown",
        "inputs": {
          "operation": "htmlToMarkdown",
          "sourceField": "html",
          "keepLinks": true,
          "outputFieldName": "markdown"
        },
        "parameters": {
          "notes": "Converts the page HTML into clean, readable Markdown."
        }
      },
      "type": "basic"
    },
    {
      "id": "copy-clipboard",
      "position": {
        "x": 1060,
        "y": 260
      },
      "data": {
        "instance": {
          "id": "af-base-node:basic:clipboardWriteNode"
        },
        "label": "Copy to clipboard",
        "inputs": {
          "text": "{{ $input.markdown }}"
        },
        "parameters": {
          "notes": "Copies the Markdown to your clipboard, ready to paste anywhere."
        }
      },
      "type": "basic"
    }
  ],
  "edges": [
    {
      "id": "e-trigger-html",
      "type": "flowEdge",
      "source": "trigger-when-started",
      "target": "get-html"
    },
    {
      "id": "e-html-markdown",
      "type": "flowEdge",
      "source": "get-html",
      "target": "to-markdown"
    },
    {
      "id": "e-markdown-clipboard",
      "type": "flowEdge",
      "source": "to-markdown",
      "target": "copy-clipboard"
    }
  ]
}