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

Remove markup from synopsis. #170

Open
WardCunningham opened this issue Jul 11, 2016 · 0 comments
Open

Remove markup from synopsis. #170

WardCunningham opened this issue Jul 11, 2016 · 0 comments

Comments

@WardCunningham
Copy link
Member

Although a page can specify a synopsis, we are happy to extract a substitute from the first or second item on a page. We prefer type=paragraph items but will accept any item with a text field. However, we should make some effort to remove markup from this text because the synopsis will not be further rendered outside of its original context.

Cases we should especially consider:

  • internal links should be represented by their content, sans the brackets.
  • external links should be represented by their link word, sans url and brackets.
  • html tags should be removed from text of type=html plugins

The synopsis should be plain text. Any html escaping should be applied as a synopsis is rendered into html, not in formulation.

This logic should be concentrated in lib/synopsis.coffee which is used by both wiki-client and wiki-server.

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