Fixed forcing-content ID instructions to be correct
- Did not mentoin needing to use the bkmrk prefix before. For BookStackApp/BookStack#1894
This commit is contained in:
parent b484d79370
commit 4d531a007c
1 changed files with 4 additions and 5 deletions
| @ -33,9 +33,9 @@ By default this contains a direct link to that content. If you click the link ic | |||
| ||||
## Forcing Content IDs | ||||
| ||||
When including a specific block of content the id of the block is used (part after the hash). By default these are generated by BookStack when you save a page. If you are using the WYSIWYG editor the id will stay the same unless the block is removed or re-formatted. In the markdown editor it changes with every save and references the content so while it may remain the same there's a good chance an ID can change. | ||||
When including a specific block of content the id of the block is used (part after the hash). By default these are generated by BookStack when you save a page. If you are using the WYSIWYG editor the id will stay the same unless the block is removed or re-formatted. In the markdown editor it changes with every save based on the content so while it may remain the same there's a good chance an ID can change therefore it's recommended to force an ID if you're using the content for includes. | ||||
| ||||
Due to the fact IDs can change it's recommended to force IDs on your content: | ||||
**Note: All ID values must start with "bkmrk" to avoid being overwritten.** | ||||
| ||||
#### WYSIWYG Editor | ||||
| ||||
| @ -49,9 +49,8 @@ In the markdown editor you can simply insert HTML with an ID to ensure it does n | |||
| ||||
``` | ||||
# Old Content | ||||
Copyright BookStack Enterprises 2017 | ||||
Copyright BookStack Enterprises 2020 | ||||
| ||||
# Revised with ID | ||||
<p id="include-copyright-text">Copyright BookStack Enterprises 2017</p> | ||||
| ||||
<p id="bkmrk-include-copyright-text">Copyright BookStack Enterprises 2020</p> | ||||
``` | ||||
| |
Loading…
Add table
Add a link
Reference in a new issue