Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow HTML posts #2

Open
raphaelbastide opened this issue Apr 8, 2014 · 3 comments
Open

Allow HTML posts #2

raphaelbastide opened this issue Apr 8, 2014 · 3 comments

Comments

@raphaelbastide
Copy link
Member

It could be nice to be able to post HTML or Markdown content as an article.
Format suggestions:

Awesome title
%% All you need is <a href="http://catgifpage.com">cats</a>! %%

or/and:

Awesome title
%% cats.txt

Note: % is an arbitrary choice

What do you think @bpierre ?

@raphaelbastide
Copy link
Member Author

TODO: add a condition to spot HTML content. https://github.com/lisezmoi/lightbulb/blob/master/lib/utils.php#L32-L56

@bpierre
Copy link
Member

bpierre commented Nov 16, 2015

Yes good idea, a few open questions:

  • Do we want to keep the syntax without any tags? A solution could be to check the extension (.jpg, .png, .gif, .txt, .md, .html, etc.)
  • Do we want to allow strings in the posts.txt? We could detect this too (no extension at the end of the line, no http://, etc.).
  • Do we want to allow multiline strings in the posts.txt itself (that would require some tag since we are using line breaks to separate the posts).

@raphaelbastide
Copy link
Member Author

To remain simple an flexible, I suggest to:

  • detect the tag (.txt, .html, .md) for the content, and include it
  • allow single line html (string)
  • do not allow multiple line html

Your thoughts?

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants