actualNoteContentPart: # Inserting a Markdown Table
  Amplenote follows the usual markdown syntax for defining a markdown table. However, since Amplenote tables allow many types of complex formatting to be inserted in cells, a custom syntax is used when dealing with such objects residing in table cells.
  
  ```
  async function noteOption(app, noteUUID) {  const note = await app.notes.find({ uuid: noteUUID });  note.insertContent(`| | | |  |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|  | **Information** |  | This example imbues a cell with various superpowers, including:<br /><br />**-** ***Selected text features -***<br />Features invoked by selecting text and [choosing an option from the ensuing toolbar][^1].<br />1. [Thesaurus][^2]. Get 10 suggested synonyms that make sense in the context around the word. |  \\  [^1]: [choosing an option from the ensuing toolbar]()       ![](https://images.amplenote.com/c6cf84d6-ceb4-11ed-a7db-d2ab91c23399/53eb85c9-e7d3-4a7f-92e3-b68fa595113c.png)   [^2]: [Thesaurus]()       ![](https://images.amplenote.com/c6cf84d6-ceb4-11ed-a7db-d2ab91c23399/847c257f-1954-454f-8b78-41ce7e1b6927.png)`);  }
  ```
  
  Would insert the following Rich Footnote-bearing table cell:
  
  
  
  
  
  With a specific cell width:
  ```
  | | | ||-|-|-||name|Bullet Journal<!-- {"cell":{"colwidth":350}} -->||icon|thermostat<!-- {"cell":{"colwidth":350}} -->|
  ```
  
  The Amplenote table UX sets a colWidth for each cell, so if you fetch a note's table, the HTML comment will be in every column cell. However, to effect the column size, the width declaration only needs to be present in one cell.
  
  # Line Breaks in Markdown
  You can insert line breaks by including a backslash on a line between empty lines. Expressing it via literal Javascript quote:
  ```
  async function appOption(app) {  const noteUUID = await app.createNote("Some note");  await app.insertNoteContent({ uuid: noteUUID }, `Two blank lines follow:  \\ \\ And then text resumes`);  await app.insertNoteContent(note, `Byee`, { atEnd: true });}
  ```
  
  The above code will create a new note, with the following text:
  
  
  
  
  # Collapsing headings
  Also through html comments you can mark a heading as collapsed ([Outlining with collapsible bullets, tasks, and headings](/help/outline_with_collapsible_bullets_tasks_headings) ):
   
  ```
  # Heading 1 <!-- {"collapsed": true} -->Heading content here
  ```
processedNoteContent: ---
  title: Markdown Reference for Plugin API
  headers: # Inserting a Markdown Table
  ---
  Inserting a Markdown Table
  Amplenote follows the usual markdown syntax for defining a markdown table. However, since Amplenote tables allow many types of complex formatting to be inserted in cells, a custom syntax is used when dealing with such objects residing in table cells. async function noteOption(app, noteUUID) {  const note = await app.notes.find({ uuid: noteUUID });  note.insertContent(`| | | |  |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|  | **Information** |  | This example imbues a cell with various superpowers, including:<br /><br />**-** ***Selected text features -***<br />Features invoked by selecting text and [choosing an option from the ensuing toolbar][^1].<br />1. [Thesaurus][^2]. Get 10 suggested synonyms that make sense in the context around the word. |  \\  [^1]: [choosing an option from the ensuing toolbar]()       ![](https://images.amplenote.com/c6cf84d6-ceb4-11ed-a7db-d2ab91c23399/53eb85c9-e7d3-4a7f-92e3-b68fa595113c.png)   [^2]: [Thesaurus]()       ![](https://images.amplenote.com/c6cf84d6-ceb4-11ed-a7db-d2ab91c23399/847c257f-1954-454f-8b78-41ce7e1b6927.png)`);  }
  Would insert the following Rich Footnote-bearing table cell: With a specific cell width: | | | ||-|-|-||name|Bullet Journal<!-- {"cell":{"colwidth":350}} -->||icon|thermostat<!-- {"cell":{"colwidth":350}} -->|
  The Amplenote table UX sets a colWidth for each cell, so if you fetch a note's table, the HTML comment will be in every column cell. However, to effect the column size, the width declaration only needs to be present in one cell. 
  Line Breaks in Markdown
  You can insert line breaks by including a backslash on a line between empty lines. Expressing it via literal Javascript quote: async function appOption(app) {  const noteUUID = await app.createNote("Some note");  await app.insertNoteContent({ uuid: noteUUID }, `Two blank lines follow:  \\ \\ And then text resumes`);  await app.insertNoteContent(note, `Byee`, { atEnd: true });}
  The above code will create a new note, with the following text: 
  Collapsing headings
  Also through html comments you can mark a heading as collapsed ( [Outlining with collapsible bullets, tasks, and headings](/help/outline_with_collapsible_bullets_tasks_headings)
   ): # Heading 1 <!-- {"collapsed": true} -->Heading content here
noteTitle: Markdown Reference for Plugin API