Sha256: 968ae86fcd896b16dcea547fabce77ecacff636672895d320c997992f12f406f

Contents?: true

Size: 1.27 KB

Versions: 22

Compression:

Stored size: 1.27 KB

Contents

# frozen_string_literal: true

module Thredded
  # Content for demo-ing formatting functionality
  module FormattingDemoContent
    class << self
      attr_accessor :parts
    end
    self.parts = [
      <<-'MARKDOWN',
#### Spoilers

Use `<spoiler></spoiler>` tags to create spoiler boxes like this one:

<spoiler>
Harry Potter books are better than the movies.

![nyancat](https://storage.googleapis.com/glebm-stuff/nyancat.gif)

https://www.youtube.com/watch?v=5lBBUPVuusM
</spoiler>

#### Oneboxes

URLs of supported resources are replaced with boxes like these:

**Twitter** `https://twitter.com/thredded/status/838824533477982209`:
https://twitter.com/thredded/status/838824533477982209
**StackExchange** `http://codegolf.stackexchange.com/questions/45701`:
http://codegolf.stackexchange.com/questions/45701
**Amazon** `https://www.amazon.co.uk/dp/0521797071`:
https://www.amazon.co.uk/dp/0521797071
**YouTube** `https://www.youtube.com/watch?v=1QP7elXwpLw`:
https://www.youtube.com/watch?v=1QP7elXwpLw
**Google Maps** `https://goo.gl/maps/R6nj3Qwf2LR2`:
https://goo.gl/maps/R6nj3Qwf2LR2

Many more resources are [supported](https://github.com/discourse/onebox/tree/master/lib/onebox/engine). Powered by the [onebox](https://github.com/discourse/onebox) library.
      MARKDOWN
    ]
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
thredded-1.0.0 lib/thredded/formatting_demo_content.rb
thredded-0.16.16 lib/thredded/formatting_demo_content.rb
thredded-0.16.15 lib/thredded/formatting_demo_content.rb
thredded-0.16.14 lib/thredded/formatting_demo_content.rb
thredded-0.16.13 lib/thredded/formatting_demo_content.rb
thredded-0.16.12 lib/thredded/formatting_demo_content.rb
thredded-0.16.11 lib/thredded/formatting_demo_content.rb
thredded-0.16.10 lib/thredded/formatting_demo_content.rb
thredded-0.16.9 lib/thredded/formatting_demo_content.rb
thredded-0.16.8 lib/thredded/formatting_demo_content.rb
thredded-0.16.7 lib/thredded/formatting_demo_content.rb
thredded-0.16.6 lib/thredded/formatting_demo_content.rb
thredded-0.16.5 lib/thredded/formatting_demo_content.rb
thredded-0.16.4 lib/thredded/formatting_demo_content.rb
thredded-0.16.3 lib/thredded/formatting_demo_content.rb
thredded-0.16.1 lib/thredded/formatting_demo_content.rb
thredded-0.16.0 lib/thredded/formatting_demo_content.rb
thredded-0.15.5 lib/thredded/formatting_demo_content.rb
thredded-0.15.4 lib/thredded/formatting_demo_content.rb
thredded-0.15.3 lib/thredded/formatting_demo_content.rb