Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Add custom tags to markdown #15

Closed
angrykoala opened this issue Sep 2, 2016 · 4 comments
Closed

Add custom tags to markdown #15

angrykoala opened this issue Sep 2, 2016 · 4 comments
Labels
Milestone

Comments

@angrykoala
Copy link
Owner

Simple tags to use before rendering markdown.

e.g.
{{ include "file" }}

@angrykoala angrykoala modified the milestone: 0.4 Sep 7, 2016
@angrykoala angrykoala modified the milestones: 0.4, 0.3 Sep 10, 2016
@angrykoala
Copy link
Owner Author

angrykoala commented Sep 11, 2016

Use tags different to EJS (maybe add option to different tags parsers)

@angrykoala angrykoala modified the milestones: 0.4, 0.3 Sep 11, 2016
@angrykoala
Copy link
Owner Author

angrykoala commented Sep 11, 2016

Use custom tags and 3 steps for rendering in EJS instead of direct rendering:

  1. change all <% for <%% to avoid ejs injection
  2. Change all custom tags for it's command in ejs (e.g. {{ include "test"}} for <%- include("test") %>
  3. Execute ejs rendering

@angrykoala angrykoala modified the milestones: 0.4, 0.3 Sep 11, 2016
@angrykoala
Copy link
Owner Author

the option above require executing recursively the parsing command

@angrykoala
Copy link
Owner Author

Custom tags parser: https://github.com/angrykoala/xejs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant