Skip to content

Instantly share code, notes, and snippets.

@jerriep
Created April 10, 2025 01:57
Show Gist options
  • Select an option

  • Save jerriep/5c7f5fc5ed3b2281632d5d5fc4d25380 to your computer and use it in GitHub Desktop.

Select an option

Save jerriep/5c7f5fc5ed3b2281632d5d5fc4d25380 to your computer and use it in GitHub Desktop.
{
"title": "Anchor text",
"body": {
"content": [
{
"endIndex": 1,
"sectionBreak": {
"sectionStyle": {
"columnSeparatorStyle": "NONE",
"contentDirection": "LEFT_TO_RIGHT",
"sectionType": "CONTINUOUS"
}
}
},
{
"startIndex": 1,
"endIndex": 41,
"paragraph": {
"elements": [
{
"startIndex": 1,
"endIndex": 23,
"textRun": {
"content": "This is linking to an ",
"textStyle": {}
}
},
{
"startIndex": 23,
"endIndex": 39,
"textRun": {
"content": "external website",
"textStyle": {
"underline": true,
"foregroundColor": {
"color": {
"rgbColor": {
"red": 0.06666667,
"green": 0.33333334,
"blue": 0.8
}
}
},
"link": {
"url": "https://www.usecloudpress.com?query=1"
}
}
}
},
{
"startIndex": 39,
"endIndex": 41,
"textRun": {
"content": ".\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"direction": "LEFT_TO_RIGHT"
}
}
},
{
"startIndex": 41,
"endIndex": 42,
"paragraph": {
"elements": [
{
"startIndex": 41,
"endIndex": 42,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"direction": "LEFT_TO_RIGHT"
}
}
},
{
"startIndex": 42,
"endIndex": 125,
"paragraph": {
"elements": [
{
"startIndex": 42,
"endIndex": 53,
"textRun": {
"content": "This link (",
"textStyle": {}
}
},
{
"startIndex": 53,
"endIndex": 83,
"textRun": {
"content": "https://www.usecloudpress.com/",
"textStyle": {
"underline": true,
"foregroundColor": {
"color": {
"rgbColor": {
"red": 0.06666667,
"green": 0.33333334,
"blue": 0.8
}
}
},
"link": {
"url": "https://www.usecloudpress.com/"
}
}
}
},
{
"startIndex": 83,
"endIndex": 125,
"textRun": {
"content": ") was automatically linked by Google Docs\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"direction": "LEFT_TO_RIGHT"
}
}
},
{
"startIndex": 125,
"endIndex": 126,
"paragraph": {
"elements": [
{
"startIndex": 125,
"endIndex": 126,
"textRun": {
"content": "\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"direction": "LEFT_TO_RIGHT"
}
}
},
{
"startIndex": 126,
"endIndex": 218,
"paragraph": {
"elements": [
{
"startIndex": 126,
"endIndex": 168,
"textRun": {
"content": "A single space with a hyperlink, like this",
"textStyle": {}
}
},
{
"startIndex": 168,
"endIndex": 169,
"textRun": {
"content": " ",
"textStyle": {
"underline": true,
"foregroundColor": {
"color": {
"rgbColor": {
"red": 0.06666667,
"green": 0.33333334,
"blue": 0.8
}
}
},
"link": {
"url": "https://www.usecloudpress.com/"
}
}
}
},
{
"startIndex": 169,
"endIndex": 218,
"textRun": {
"content": "one should be ignored when converted to markdown\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"direction": "LEFT_TO_RIGHT"
}
}
}
]
},
"documentStyle": {
"background": {
"color": {}
},
"pageNumberStart": 1,
"marginTop": {
"magnitude": 72,
"unit": "PT"
},
"marginBottom": {
"magnitude": 72,
"unit": "PT"
},
"marginRight": {
"magnitude": 72,
"unit": "PT"
},
"marginLeft": {
"magnitude": 72,
"unit": "PT"
},
"pageSize": {
"height": {
"magnitude": 792,
"unit": "PT"
},
"width": {
"magnitude": 612,
"unit": "PT"
}
},
"marginHeader": {
"magnitude": 36,
"unit": "PT"
},
"marginFooter": {
"magnitude": 36,
"unit": "PT"
},
"useCustomHeaderFooterMargins": true
},
"namedStyles": {
"styles": [
{
"namedStyleType": "NORMAL_TEXT",
"textStyle": {
"bold": false,
"italic": false,
"underline": false,
"strikethrough": false,
"smallCaps": false,
"backgroundColor": {},
"foregroundColor": {
"color": {
"rgbColor": {}
}
},
"fontSize": {
"magnitude": 11,
"unit": "PT"
},
"weightedFontFamily": {
"fontFamily": "Arial",
"weight": 400
},
"baselineOffset": "NONE"
},
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"alignment": "START",
"lineSpacing": 115,
"direction": "LEFT_TO_RIGHT",
"spacingMode": "NEVER_COLLAPSE",
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"unit": "PT"
},
"borderBetween": {
"color": {},
"width": {
"unit": "PT"
},
"padding": {
"unit": "PT"
},
"dashStyle": "SOLID"
},
"borderTop": {
"color": {},
"width": {
"unit": "PT"
},
"padding": {
"unit": "PT"
},
"dashStyle": "SOLID"
},
"borderBottom": {
"color": {},
"width": {
"unit": "PT"
},
"padding": {
"unit": "PT"
},
"dashStyle": "SOLID"
},
"borderLeft": {
"color": {},
"width": {
"unit": "PT"
},
"padding": {
"unit": "PT"
},
"dashStyle": "SOLID"
},
"borderRight": {
"color": {},
"width": {
"unit": "PT"
},
"padding": {
"unit": "PT"
},
"dashStyle": "SOLID"
},
"indentFirstLine": {
"unit": "PT"
},
"indentStart": {
"unit": "PT"
},
"indentEnd": {
"unit": "PT"
},
"keepLinesTogether": false,
"keepWithNext": false,
"avoidWidowAndOrphan": true,
"shading": {
"backgroundColor": {}
},
"pageBreakBefore": false
}
},
{
"namedStyleType": "HEADING_1",
"textStyle": {
"fontSize": {
"magnitude": 20,
"unit": "PT"
}
},
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"direction": "LEFT_TO_RIGHT",
"spaceAbove": {
"magnitude": 20,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 6,
"unit": "PT"
},
"keepLinesTogether": true,
"keepWithNext": true
}
},
{
"namedStyleType": "HEADING_2",
"textStyle": {
"bold": false,
"fontSize": {
"magnitude": 16,
"unit": "PT"
}
},
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"direction": "LEFT_TO_RIGHT",
"spaceAbove": {
"magnitude": 18,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 6,
"unit": "PT"
},
"keepLinesTogether": true,
"keepWithNext": true
}
},
{
"namedStyleType": "HEADING_3",
"textStyle": {
"bold": false,
"foregroundColor": {
"color": {
"rgbColor": {
"red": 0.2627451,
"green": 0.2627451,
"blue": 0.2627451
}
}
},
"fontSize": {
"magnitude": 14,
"unit": "PT"
}
},
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"direction": "LEFT_TO_RIGHT",
"spaceAbove": {
"magnitude": 16,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 4,
"unit": "PT"
},
"keepLinesTogether": true,
"keepWithNext": true
}
},
{
"namedStyleType": "HEADING_4",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"red": 0.4,
"green": 0.4,
"blue": 0.4
}
}
},
"fontSize": {
"magnitude": 12,
"unit": "PT"
}
},
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"direction": "LEFT_TO_RIGHT",
"spaceAbove": {
"magnitude": 14,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 4,
"unit": "PT"
},
"keepLinesTogether": true,
"keepWithNext": true
}
},
{
"namedStyleType": "HEADING_5",
"textStyle": {
"foregroundColor": {
"color": {
"rgbColor": {
"red": 0.4,
"green": 0.4,
"blue": 0.4
}
}
},
"fontSize": {
"magnitude": 11,
"unit": "PT"
}
},
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"direction": "LEFT_TO_RIGHT",
"spaceAbove": {
"magnitude": 12,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 4,
"unit": "PT"
},
"keepLinesTogether": true,
"keepWithNext": true
}
},
{
"namedStyleType": "HEADING_6",
"textStyle": {
"italic": true,
"foregroundColor": {
"color": {
"rgbColor": {
"red": 0.4,
"green": 0.4,
"blue": 0.4
}
}
},
"fontSize": {
"magnitude": 11,
"unit": "PT"
}
},
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"direction": "LEFT_TO_RIGHT",
"spaceAbove": {
"magnitude": 12,
"unit": "PT"
},
"spaceBelow": {
"magnitude": 4,
"unit": "PT"
},
"keepLinesTogether": true,
"keepWithNext": true
}
},
{
"namedStyleType": "TITLE",
"textStyle": {
"fontSize": {
"magnitude": 26,
"unit": "PT"
}
},
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"direction": "LEFT_TO_RIGHT",
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"magnitude": 3,
"unit": "PT"
},
"keepLinesTogether": true,
"keepWithNext": true
}
},
{
"namedStyleType": "SUBTITLE",
"textStyle": {
"italic": false,
"foregroundColor": {
"color": {
"rgbColor": {
"red": 0.4,
"green": 0.4,
"blue": 0.4
}
}
},
"fontSize": {
"magnitude": 15,
"unit": "PT"
},
"weightedFontFamily": {
"fontFamily": "Arial",
"weight": 400
}
},
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"direction": "LEFT_TO_RIGHT",
"spaceAbove": {
"unit": "PT"
},
"spaceBelow": {
"magnitude": 16,
"unit": "PT"
},
"keepLinesTogether": true,
"keepWithNext": true
}
}
]
},
"revisionId": "AGbAtPphue_kLy8H8WLvt_EezneG2vL_2yrnlNFHGfFl-AnD6BV0ioGxe63uYrGtJ3tUd930CFdwIVR580zZpw",
"suggestionsViewMode": "SUGGESTIONS_INLINE",
"documentId": "1bqrY8dydwE2N_8F6-27ukwYevtp0bbKUe7ySY-Y7W5Q"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment