You have to use the download document module in Google Docs app and use the HTML to get the existing HTML and then append your new Markdown->HTML formatted content and then CREATE a new document from that combination…
Here’s the snapshow of the Download a Document module that shows how to format in HTML
Once you do this you can use the downloaded HTML and append more HTML in the Create a Document module
Here's a sample scenario that shows how to do this
{
"subflows": [
{
"flow": [
{
"id": 1,
"module": "util:SetVariables",
"version": 1,
"parameters": {},
"mapper": {
"variables": [
{
"name": "markdown",
"value": "# An H1 Header\n## An H2 Header\n### An H3 Header\n#### An H4 Header\n\n* Item 1\n* Item 2\n* Item 3\n\nMore text"
}
],
"scope": "roundtrip"
},
"metadata": {
"designer": {
"x": 0,
"y": 0
},
"restore": {
"expect": {
"variables": {
"items": [
null
]
},
"scope": {
"label": "One cycle"
}
}
},
"expect": [
{
"name": "variables",
"type": "array",
"label": "Variables",
"spec": [
{
"name": "name",
"label": "Variable name",
"type": "text",
"required": true
},
{
"name": "value",
"label": "Variable value",
"type": "any"
}
]
},
{
"name": "scope",
"type": "select",
"label": "Variable lifetime",
"required": true,
"validate": {
"enum": [
"roundtrip",
"execution"
]
}
}
],
"interface": [
{
"name": "markdown",
"label": "markdown",
"type": "any"
}
]
}
},
{
"id": 2,
"module": "markdown:Compile",
"version": 2,
"parameters": {},
"mapper": {
"data": "{{1.markdown}}",
"gfm": true,
"sanitize": false
},
"metadata": {
"designer": {
"x": 300,
"y": 0
},
"restore": {
"expect": {
"gfm": {
"mode": "chose"
},
"sanitize": {
"mode": "chose"
}
}
},
"expect": [
{
"name": "data",
"type": "text",
"label": "Markdown"
},
{
"name": "gfm",
"type": "boolean",
"label": "GitHub Flavored Markdown",
"required": true
},
{
"name": "sanitize",
"type": "boolean",
"label": "Sanitize",
"required": true
}
]
}
},
{
"id": 12,
"module": "google-docs:createADocument",
"version": 1,
"parameters": {
"__IMTCONN__": 648527
},
"mapper": {
"name": "test document",
"content": "{{2.data}}",
"destination": "drive",
"header": false,
"footer": false,
"folderId": "/1xDKsySmZ4XU-vW06k-Dua8pKbpxHAoJK"
},
"metadata": {
"designer": {
"x": 600,
"y": 0
},
"restore": {
"parameters": {
"__IMTCONN__": {
"label": "NewPath Google connection (alexs@newpathconsulting.com)",
"data": {
"scoped": "true",
"connection": "google"
}
}
},
"expect": {
"destination": {
"label": "My Drive"
},
"folderId": {
"mode": "chose",
"path": [
"WA Reports"
]
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:google",
"label": "Connection",
"required": true
}
],
"expect": [
{
"name": "name",
"type": "text",
"label": "Name",
"required": true
},
{
"name": "content",
"type": "text",
"label": "Content",
"required": true
},
{
"name": "destination",
"type": "select",
"label": "Choose a Drive",
"required": true,
"validate": {
"enum": [
"drive",
"share",
"team"
]
}
},
{
"name": "header",
"type": "boolean",
"label": "Insert a Header",
"required": true
},
{
"name": "footer",
"type": "boolean",
"label": "Insert a Footer",
"required": true
},
{
"name": "folderId",
"type": "folder",
"label": "New Document's Location",
"required": true
}
]
}
},
{
"id": 18,
"module": "google-docs:exportADocument",
"version": 1,
"parameters": {
"__IMTCONN__": 648527
},
"mapper": {
"destination": "drive",
"mimeType": "text/html",
"document": "{{12.id}}"
},
"metadata": {
"designer": {
"x": 900,
"y": 0
},
"restore": {
"parameters": {
"__IMTCONN__": {
"label": "NewPath Google connection (alexs@newpathconsulting.com)",
"data": {
"scoped": "true",
"connection": "google"
}
}
},
"expect": {
"destination": {
"label": "My Drive"
},
"mimeType": {
"mode": "chose",
"label": "HTML Format (.html)"
},
"document": {
"mode": "edit",
"path": []
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:google",
"label": "Connection",
"required": true
}
],
"expect": [
{
"name": "destination",
"type": "select",
"label": "Choose a Drive",
"required": true,
"validate": {
"enum": [
"drive",
"share",
"team"
]
}
},
{
"name": "mimeType",
"type": "select",
"label": "Type",
"required": true,
"validate": {
"enum": [
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.oasis.opendocument.text",
"application/rtf",
"application/pdf",
"text/plain",
"text/html",
"application/epub+zip"
]
}
},
{
"name": "document",
"type": "file",
"label": "Document ID",
"required": true
}
]
}
},
{
"id": 19,
"module": "google-docs:createADocument",
"version": 1,
"parameters": {
"__IMTCONN__": 648527
},
"mapper": {
"name": "test document",
"content": "existing data\n{{18.data}}\nnew data\n{{2.data}}",
"destination": "drive",
"header": false,
"footer": false,
"folderId": "/1xDKsySmZ4XU-vW06k-Dua8pKbpxHAoJK"
},
"metadata": {
"designer": {
"x": 1200,
"y": 0
},
"restore": {
"parameters": {
"__IMTCONN__": {
"label": "NewPath Google connection (alexs@newpathconsulting.com)",
"data": {
"scoped": "true",
"connection": "google"
}
}
},
"expect": {
"destination": {
"label": "My Drive"
},
"folderId": {
"mode": "chose",
"path": [
"WA Reports"
]
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:google",
"label": "Connection",
"required": true
}
],
"expect": [
{
"name": "name",
"type": "text",
"label": "Name",
"required": true
},
{
"name": "content",
"type": "text",
"label": "Content",
"required": true
},
{
"name": "destination",
"type": "select",
"label": "Choose a Drive",
"required": true,
"validate": {
"enum": [
"drive",
"share",
"team"
]
}
},
{
"name": "header",
"type": "boolean",
"label": "Insert a Header",
"required": true
},
{
"name": "footer",
"type": "boolean",
"label": "Insert a Footer",
"required": true
},
{
"name": "folderId",
"type": "folder",
"label": "New Document's Location",
"required": true
}
]
}
}
]
}
],
"metadata": {
"version": 1
}
}