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

configurable token to demarcate code blocks #5

Open
vijithassar opened this issue Sep 19, 2018 · 0 comments
Open

configurable token to demarcate code blocks #5

vijithassar opened this issue Sep 19, 2018 · 0 comments
Assignees

Comments

@vijithassar
Copy link
Owner

vijithassar commented Sep 19, 2018

Currently lit always assumes it is processing GitHub Flavored Markdown documents in which code and prose are distinguished with triple backticks. Allowing the user to specify an alternative token with a command line argument would enable literate programming using other document formats. Parsing LaTeX and HTML would require a sort of "soft match" mode in which the presence of part of the token would trigger a match, so that e.g. specifying the token pre> could be used to match both opening <pre> and closing </pre>. (Supporting the tab-indented code formatting of non-GitHub original Markdown would require dramatically different logic throughout and as a result should not be considered part of this feature proposal.)

Adding this feature would make the input document format configurable just like the programming language, which furthers the goal of making prose and code equal partners.

@vijithassar vijithassar self-assigned this Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant