Replies: 1 comment
-
Here's the start of a peg.js parser which could parse the trigger/action syntax shown in the example above (this is not complete):
So given {
"trigger": "onClick",
"action": {
"action": "assessment:startAttempt",
"id": "my-assessment"
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd be nice to be able to edit obo module docs in Markdown as it's a pretty easy language to grasp. This would also be helpful if/when Obojobo allows you to "save" documents to a git repository.
A simple document with headings, text, lists, tables, links and so on is already reasonably covered by the original markdown spec:
However there are a few Obojobo specific problems to solve.
Metadata
yaml frontmatter is a solution to introducing metadata to a document. This is, for example, where we could put top-level Module level items, like the document title, the start page, and so on.
Converting a multi-page module to a single markdown file
I think a goal would be to be able to store a whole Obojobo module into one single markdown file, for ease of committing and editing a singular file. I don't know of any standard solutions to this. We could do something like
That feels hacky. We could also support the Obo XML language, so
But again, still doesn't feel right.
IDs
Each obo node can support IDs, so we need to allow IDs to be set on any node including text, tables, etc.
I haven't researched it, perhaps there's a standard way to do this. One idea:
YouTube videos
With this we could allow for our Obo XML, or have a new "chunk" syntax.
Questions
The XML syntax for Questions is difficult and tedious to write. Perhaps we can use Respondus format?
Triggers/Actions
For example, create a button that goes to a page when clicked on and displays a message. What should the syntax be?
One example:
This would be equivalent to this XML:
Or perhaps some sort of AppleScript type syntax
Misc
There also needs to be solutions for Question Banks, images with captions, Materia widgets, etc.
Beta Was this translation helpful? Give feedback.
All reactions