-
Notifications
You must be signed in to change notification settings - Fork 34
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
Rewrite orgparser.py with a proper parser for Org-mode syntax #63
Comments
If I understand it correctly the current parser is there to allow running some syntax-bound features. |
The current parser parses some lazyblorg-specific things such as support for tsfile links and so forth, yes.
Which export? There is not export involved yet. So you must have a totally different workflow in mind which I can not follow. You suggest to use "native org mode html export". I guess you would assume to use the Elisp functionality to export single orgdown headings to separate HTML files, right? If so, this would require massive pre- (tsfile links, ...) and postprocessing (side-bar, header, footer, ...) steps as well as an efficient way of using Emacs functionality which I don't see at this point. The whole templating mechanism and all of its built-in features would not work any more. This would most probably require the whole lazyblorg functionality moved to Elisp which is a total new rewrite which I can not accomplish due to lack of Elisp and lack of time/motivation to do so. Unfortunately, lazyblorg works perfectly fine for my now. |
One can call elisp from the CLI, and I thought it is possible to add HTML templates in for export. |
That's possible, yes. In my opinion only with a completely rewrite in Elisp because hundreds or thousands of Emacs invocations most certainly does not scale at all for re-building a blog. You don't have to forget that lazyblorg re-generates everyting with each invocation. It's not just build the new articles. Any new article can have massive influence on all the others such as "most frequently used tags", links, and so forth.
It works for me without italics. Certainly good enough for not changing the architecture of the parser for it. Although replacing the naïve parser with a "proper" one would have lots of advantages, the current one does the job with the current known limitations which is OK to me. The only thing that could happen to make me think of going into that direction is a proven OrgDown Python parser from the community so that lazyblorg is pushing the idea of OD. |
See also #2 I am all for pushing OD, btw :) |
The initial and current parser is a naïve linear parser. It comes with some drawbacks:
With switching to a really good Org-mode (orgdown?) parser, the lazyblorg syntax possibilities as well as the maintenance could be improved.
The text was updated successfully, but these errors were encountered: