-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide parser as separate module #4
Comments
Thanks! The parser is available in the module 'parser/flow' and the data extracted from the text is stored in the graph object. So you can use the parser without rendering the graph as outlined below. Was it something like that you had mind? Setup
Parsing
Data extraction
|
Yes, actually. Thanks! Would it also be possible to add this to the docs somewhere for future inquirers? |
Sorry for bringing it up after such a long time but I believe answer is a bit outdated. Would it be possible to provide an up to date example of extracting object graph of mermaid code, as it was originally requested in this post? |
The code is still pretty correct except you need to adjust the require statements because files has been moved. |
@tylerlong Thanks for you reply. I have managed to make it work :) |
I had to change |
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.5 to 2.1.6. - [Release notes](https://github.com/actions/cache/releases) - [Commits](actions/cache@v2.1.5...v2.1.6) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Hi. I'm trying to use the parser as a way to specify a flowchart that I'd like to process as a graph in a downstream app. I'm trying to figure out how to access this within the current codebase and it looks like it's impossible. Can anyone provide an indicator about how we might be able to do this? Thanks! Gully Burns |
@knsv I'm also interested in this. How would I import this from a yarn project? |
I really like the syntax you've made, and I think it could have applications outside the graph rendering stuff. It'd be nice if you provided a parser for the graph itself as a separate module.
The text was updated successfully, but these errors were encountered: