Skip to content

Spoiler. Ability to control visibility of the content in posts. Works better with Markdown syntax.

License

Notifications You must be signed in to change notification settings

exo-do/nodebb-plugin-ns-spoiler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeBB: Spoiler

Spoiler. Ability to control visibility of the content in posts. Works better with Markdown syntax.

Version Dependencies bitHound Score Code Climate

General

Implementation is based on ideas from CommonMark Talk group. If you want to alter look of the spoiler, you could use these CSS classes: ns-spoiler, ns-spoiler-control, ns-spoiler-content

Code Example

:::

Spoiler's content goes here, it should start and end with at least 3 colons.
It should have a blank lines around the 3 colons tags.

:::

TODO

  • Tag Feature: Messages/Title (ability to specify message, ex. :::sexy images:::, in the end it will produce button with additional comment)
  • Tag Feature: meta conditions, ex. :::{title:'sexy images', reputation: 80}::: spoiler expandable for the users with 100 or more posts, with 8 or more points, with 80 or more reputation, etc.
  • Animation: expand/collapse
  • Support nested spoilers
  • Register spoilers on Profile view
  • Remove tag from last post preview

About

Spoiler. Ability to control visibility of the content in posts. Works better with Markdown syntax.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.2%
  • CSS 2.8%