Replies: 7 comments 2 replies
-
Retype templates can do something similar to your requirements, although the content of the embed would be stored in a separate You can include the content of another file from within the For example, you can create a file at - Item 1
- Item 2
- Item 3 Then include that # Sample page
## Definitions
{{ include "definitions/idea1" }} The final generated page should look like the following: The Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Hey Geoffrey, Thanks for commenting! This is a great feature but unfortunately wouldn't suit my needs since I'd ultimately need to create hundreds of .md files containing small amounts of information to embed. For example, terminology.md would contain hundreds of definitions. If I embedded this onto the cloud-computing.md page, it would embed all of the definition. Instead, I'd need to create individual pages containing any definition I wanted to embed, which would become unruly fast. It may simply not be possible to embed specific anchors, but I figured I'd at least request it here and see if the capability could exist since it would be quite powerful! |
Beta Was this translation helpful? Give feedback.
-
I believe we had this feature in a feature request issue when we were building the We also have a similar component for referencing code snippets using the following component, so adding functionality to reference just a text snippet could work in a similar manner. This is something I can look into, although at the moment we have a lot of tasks on our TODO list and it's going to be tough to get too in the short term. |
Beta Was this translation helpful? Give feedback.
-
Oh man, even that is pretty awesome. But yes, being able to use the actual anchor in that page would make things much more scalable. It looks like you're most of the way there already so I will definitely keep my eyes on this one! |
Beta Was this translation helpful? Give feedback.
-
@geoffreymcgill I just tested this feature out with the line numbers (added some lines from
While my original suggestion was to use anchors, I can certainly understand how this might be challenging, too. Do you include just the # anchor? Or do you include any ## and ### and #### anchors beneath it!? What if someone just wants a specific component (like a panel or a tab, or even as specific as part of a table)!? So many questions! I'm wondering if maybe you can build in a special character or characters like you have for other components (like |
Beta Was this translation helpful? Give feedback.
-
We think we can build the following
The region requires a name, essentially an id, in the format of To add that named Thoughts? |
Beta Was this translation helpful? Give feedback.
-
The Region component would be considered a block-level component and would require the opening Your sample would be revised to the following: ///region MYNEWREGION
==- Word
Definition
==-
///endregion If you only wanted the content of the Panel within the named region, you can reposition the region component to the following: ==- Word
///region MYNEWREGION
Definition
///endregion
==- We haven't decided yet if nested regions would be supported, but it is likely they will be. Your sample would be revised to the following: UPDATE The ///region North-America
# North America
This region includes many countries.
For example:
///region Canada
## Canada
///endregion
///region United-States
## United States
///endregion
///endregion Including the region would use the following {{ include "/exam/terminology.md#United-States" }} The {{ include "/exam/terminology.md#united-states" }} At least that is the proposal. |
Beta Was this translation helpful? Give feedback.
-
I've asked for this feature in so many platforms to date and have yet to see it successfully implemented. Basically, I'm looking for some way to embed anchors from one page into another. Here is my use case:
I often create pages of content that contain definitions. For example, "Business Impact Analysis" (BIA) and an associated definition. The BIA might appear in several topics. For example, it could appear within the "Business Continuity and Disaster Recovery" section and it could also appear within the "Business Operations" section. Additionally, I have an entirely separate section in the index aptly named "Terminology" where I also aggregate all of these "definitions." Rather than copy/pasting the text from one section to another, which also requires me to ensure the data is always kept up to date in all three locations instead of one, it would be unbelievable (and a complete differentiator from any other platform) if having the ability to embed anchors and the content contained within them existed. For example, being able to embed /exam/terminology/#business-impact-analysis into /exam/business-operations/ and /exam/bcdr/ by simply using an !embed command.
Beta Was this translation helpful? Give feedback.
All reactions