chrickso

Joined

100 Experience
0 Lessons Completed
0 Questions Solved

Activity

indentation test for simpleMDE:

This is the top level.
This should be indented (level 1)
indented more (level 2)
indented more (level 3)

  • Bullet Top Level
    • Bullet Level 2
      • Bullet Level 3
        • Bullet Level 4
          • Bullet Level 5

thanks for the info

switching back to SimpleMDE or something else? SimpleMDE looks cool but not being updated at all since mid 2016 is worrisome

~~~is this really parsed with markdown test~~~

1. Item 1
1. Item 2
1. Item 3
   1. Item 3a
   1. Item 3b
      1. Item 3b
         1. Item 3b


- [x] @mentions, #refs, [links](), **formatting**, and <del>tags</del> supported
- [x] list syntax required (any unordered or ordered list supported)
- [x] this is a complete item
- [ ] this is an incomplete ite

First Header | Second Header ------------ | ------------- Content from cell 1 | Content from cell 2 Content in the first column | Content in the second column

> guess not
I was considering implementing on my website the ability for users to switch between a markdown editor or the trix editor but then I noticed on this gorails.com editor (which appears to be Trix) it says "parsed with markdown" below it and I'm wondering how this is possible and what I can do to enable my trix editor to parse markdown. It was my understanding that Trix translates what is typed clientside into HTML and the HTML-ized body is content is what is submitted via the form to the rails controller.

Is there some markdown parser customized into the Trix library or is the parser even running clientside or is the parser just run serverside of the HTML-ized body content before it is saved? I would really love any info on how this is done and how I can incorporate the same functionality.

Thanks in advance for any insight.
when following the video i was getting the error:
undefined method `for' for #<Devise::ParameterSanitizer:0x007fd1715018e8>

per this stackoverflow page (https://stackoverflow.com/questions/37341967/rails-5-undefined-method-for-for-devise-on-line-devise-parameter-sanitizer), I had to update the configure_permitted_parameters method (in application_controller) to this
def configure_permitted_parameters
  devise_parameter_sanitizer.permit(:sign_up, keys: [ :email, :password,
                                    :password_confirmation, account_attributes: [:subdomain] ])
end
and then everything worked fine. hope this helps
logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.