Skip to content
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

Render as reStructuredText #12

Open
sbrunk opened this issue May 6, 2014 · 1 comment
Open

Render as reStructuredText #12

sbrunk opened this issue May 6, 2014 · 1 comment
Milestone

Comments

@sbrunk
Copy link
Contributor

sbrunk commented May 6, 2014

Is it possible to write a Document Tree Model back to reStructuredText somehow? Could it even be possible to do it "lossless", that is, recreate the exact original document from the tree model?
Use case would be an editor that changes a few elements programmatically but stores back reStructuredText.

@jenshalm
Copy link
Contributor

jenshalm commented May 7, 2014

Writing back in markup format is currently not possible. I had it on the back of my mind, but it's not on the road map yet. But when I thought of it I was thinking more about cross-transforming from one format to the other. Making it lossless is not trivial, the current model would not be sufficient as each node would need to store the original input string. The current model only does that for a few selected node types like link references where it is quite common to write back the source to the target format when they cannot be resolved.

@jenshalm jenshalm added this to the Backlog milestone Jun 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants