bootstrap-markdown
bootstrap-markdown copied to clipboard
Bootstrap 4 support
Bootstrap 4 support?
I guess that is something the library should support, but bootstrap 4 is currently in alpha. We can start on it when it reaches beta as from then on there will be no api changes!
Great. Thanx for reply. (Anyway: I`m going to try it...if it works without changes.)
I think the classnames will change a bit, but please try it and give us some feedback! You can also start a PR to add BS4 support
:+1:
Second observation: Bootstrap has dropped the hidden
class due to incompatibility with jquery's show()
, hide()
methods.
To hide an element, you need to use attribute hidden
.
http://v4-alpha.getbootstrap.com/content/reboot/#html5-hidden-attribute
ex: <button class="btn-sm btn btn-primary" hidden>button</button>
i haven't really had any issues with bootstrap4. the only thing i had to do was add iconlibrary: 'fa'
as a parameter
Thanks guys. I'll try to conduct wider test this week.
Hi! @toopay is there any news? I would like to use this project but we are using Bootstrap4 since it's stable :)
Note that in order to play well with fontawesome5 if you do treeshaking one needs to edit bootstrap-mardown.js and replace line 1003 fa-header by fa-heading, line 1070 fa-picture-o by fa-image.
Maybe we can have a 'fa-5' option to deal with this situation?
As for bootstrap4 everything looks fine. As @itsmill3rtime said, one needs to explicitly call the plugin on the element to add the iconlibrary: 'fa'
option.
Cheers :)
the way this is done normally is we bump a major version to the plugin, create a branch for the current BS 3 support (2.x) and then put BS4 support in master (3.x)
The default glyphicon icon doesn't load. Will try FontAwesome.
Note that in order to play well with fontawesome5 if you do treeshaking one needs to edit bootstrap-mardown.js and replace line 1003 fa-header by fa-heading, line 1070 fa-picture-o by fa-image.
You can fix the missing icons using fontawesome5 by adding this two lines to your css, so you do not need to alter the javascript:
.fa-header::before { content: "\f1dc"; }
.fa-picture-o::before { content:"\f03e"; }