Problem
In v1.2.1 the pasting syntax of RemNote got reworked a bit which broke most demos.
Pre v1.2.1 when resolving a tag it would check if you have any rem with that name and use it. This way I could include a Tags
section in a scroll with a list of hopefully unique tags and the Demo
section could use them directly.
This does not work in v1.2.1 any more since pasted tags are resolved to top-level rem. This means a scroll can not be made self contained anymore.
How to handle it?
Here are some possible ways to handle the Demo section each with pros and cons (mostly cons since the old way was pretty flexible).
- Use top level rem as tags.
- The simplest solution. Tags section could be a list of references to these top level rem.
- Con: The scroll is not self contained, i.e. deleting leaves the tags in your KB. Can also be a good thing:
- Pro: Tags are still there if you want to use a similar functionality later.
- Con: You can not use hierarchical search to look up the correct tags of a scroll.
- Con: Creates a bunch of
#Stub
s.
- Use the full path to the tags (
#[[Custom CSS/Scroll/Tags/tagname]]
), basically recreating the current self contained scrolls.- Con: Users would be required to paste the Scroll at the root of Custom CSS which is one more source of errors.
- If I ever implement an API this would not be a concern.
- Con: This does not work in one paste ATM, but theoretically RemNote’s pasting routine could be modified to first create all rem and then apply the tags.
- Con: Users would be required to paste the Scroll at the root of Custom CSS which is one more source of errors.
- Use an external tag list/archive
- Basically an extension of full path tags that would currently work.
- Pro: Have one location to list all tags.
- Con: No nice formatting.
- Con: Creates a bunch of
#Stub
s. - Con: Scroll names can clash. I intended to identify Scrolls with a unique id e.g. com.github.user.repo. I guess the size of the Libray does not justify that though. Also the tags themselves can clash without some extra config/CSS postprocessing.
- Drop the Demo (maybe 2 step install)
- Users paste only paste CSS code and some tags, then maybe optionally a Demo using using full path as outlined in 2 or 3 provided those are viable.
- Con: No direct Demo to play with.
- Import JSON
- Con: Harder to install: requires download and Import.
- Con: It’s not documented yet how to create the correct JSON format yet.
- Drop the library and use other means of sharing
- RemNote document snapshots: Very easy sharing for lay users. Very easy import (just click the +). No version control, no auto update/update notification possible, not discoverable/searchable.
- CSS Snippets on Github: Is version controlled and somewhat discoverable, watching repo can notify for updates (but notifies for all commits, not just installed), no nice way to install.
- Tutorials
- In case of 4. provide make gifs/youtube videos demonstrating the scroll.
- Con: High effort: Someone has to record gifs/youtube videos.
- Pro: Explains complex stuff better than a small demo.
- Con: Can’t see and play around in own knowledge base.
- Top-level Tags
- Full Path Tags (requires devs to implement it)
- Tag List
- No Demo
- JSON
- RemNote snapshots
- Snippets on Github
- Tutorials
0 voters