Naereen / StrapDown.js

:sparkles: StrapDown.js is an awesome javascript tool to quickly publish nice-looking web-pages in pure Markdown :pencil:, with no server side compilation :sunglasses: →
https://naereen.github.io/StrapDown.js/
MIT License
108 stars 45 forks source link

Can I use MaterializeCSS as a theme to replace Bootstrap CSS for your plugin? #4

Closed gusbemacbe closed 6 years ago

gusbemacbe commented 6 years ago

Hello,

The problem is that my project uses the framework Materializecss. There would be a conflict among MaterializeCSS and a Bootstrap theme.

Gustavo Costa

Naereen commented 6 years ago

Hi, I'm sure you can, but I won't modify the js files for you. Give it a try!

gusbemacbe commented 6 years ago

I have just tried

It worked perfectly for Materialize.

I have other good news.

You can use any non-Bootstrap theme from Typora, MacDown and any Markdown editor app. I tested it with my own theme I built for Typora. See:

screen shot 2017-11-20 at 10 41 26

And with a Github from MacDown, with an import of FontAwesome.

screen shot 2017-11-20 at 10 43 43

A PHP file

<html>
<head>
  <title>Changelog</title>
  <link rel="stylesheet" type="text/css" href="markdown/gustavo.css">
  <link rel="stylesheet" type="text/css" href="markdown/markdown.css">
</head>
<body>

<xmp>

  <?php require_once 'CHANGELOG.md'; ?>

</xmp>
<script type="text/javascript" src="markdown/strapdown.js?mathjax=y"></script>

</body>
</html>

A Markdown file


# <i class="fa fa-address-book" aria-hidden="true"></i> CHANGELOG

## 3.1

* Removemos o plugin jquery.nicescroll que causou a lentidão;
* Separamos os scripts determinados para cada página determinada;
* Removemos os scripts que não utilizamos mais;
* Novo layout de lista de cartões de desportos na página de desportos.
Naereen commented 6 years ago

Ok, good to know.

This project is not really dead but never updated, so I am closing this.

Naereen commented 6 years ago

Thanks for reporting your success!