Apple Shortcut - Add text to a note action

Hey there!

I seem to have found a bug regarding the “Add text to a note” action in Shortcuts. My note has 2 headers, “Log” and “Notes”. It also has the tag section at the end of the file. I’m trying to create a shortcut to quickly append any text under the respective headers. However, for the last header in a note, if I specify the header in Shortcuts (Fig. 1), it will append after the tag section (Fig. 2). If I leave it blank (Fig. 3), it will append before the tag section (Fig. 4). How do I ensure that the text will be appended before the tag section, but also specifying the header?

Fig 1. Shortcut with header specified:


Fig 2. Output (appended after tag section):

Fig 3. Shortcut without header specified:


Fig 4. Output (appended before tag section):

The simplest way is to set the tag line as a heading (such as h6), or add a heading before the tag.

For example:

# 2025-05-17
## Log

## Notes

###### #tag

Or

# 2025-05-17
## Log

## Notes

## Reference
#tag

And for me, I always put the tag just under the title (H1):

# 2025-05-17
#tag
---
## Log

## Notes

Hey, thanks for the suggestions. I’m hesitant to move the tags under the title because whenever I do tag changes via the user interface, they’re always applied to the end.

As for the others, they kind of feel like workarounds rather than how it should be. Might go for the second suggestion while it’s fixed though.

Dragging your note to a specific tag in the left sidebar will append that tag to your note.
I think what you mentioned as “via user interface” might be referring to this behavior.

I find it difficult to define whether a tag placed at the very bottom can represent the entire note. For example:

# Classmate Information
#admin
---
### David
#boy

### Sarah
#girl

### Jasper
#boy

If there were a setting to specify whether a tag added via drag-and-drop should be placed under the title or at the bottom of the note, that would be a great option.

Yeah, that’s what I meant. Or even append after the first tag found in the note (wherever it is). But that might pose a problem for users of multiple tags at different locations.