All Projects → wecatch → Markdown Css

wecatch / Markdown Css

Licence: mit
A tool convert css style into markdown inline style

Projects that are alternatives of or similar to Markdown Css

Typora Cobalt Theme
A dark theme for Typora with enhanced UI
Stars: ✭ 218 (+78.69%)
Mutual labels:  markdown, themes
teks
Easily get custom go template based outputs to your command-line tool. Like in docker/kubernetes
Stars: ✭ 41 (-66.39%)
Mutual labels:  format, easy-to-use
Mpeditor
微信markdown编辑器
Stars: ✭ 146 (+19.67%)
Mutual labels:  markdown, wechat
Markdown Nice
支持主题设计的 Markdown 编辑器,让排版变 Nice
Stars: ✭ 3,291 (+2597.54%)
Mutual labels:  markdown, wechat
Hacktoberfest
Participate in Hacktoberfest by contributing to any Open Source project on GitHub! Here is a starter project for first time contributors. #hacktoberfest
Stars: ✭ 631 (+417.21%)
Mutual labels:  markdown, easy-to-use
Wemark
微信小程序Markdown渲染库
Stars: ✭ 1,159 (+850%)
Mutual labels:  markdown, wechat
shikijs
A JavaScript Library for Syntax Highlighting with Awesome themes
Stars: ✭ 21 (-82.79%)
Mutual labels:  themes, easy-to-use
Rigel
🌌 Colorscheme for vim, terminal, vscode and slack - based on the star Rigel ✨.
Stars: ✭ 324 (+165.57%)
Mutual labels:  markdown, themes
Blastula
Easily send great-looking HTML email messages from R
Stars: ✭ 394 (+222.95%)
Mutual labels:  markdown, easy-to-use
Online Markdown
A online markdown converter specially for Wechat Public formatting.
Stars: ✭ 812 (+565.57%)
Mutual labels:  markdown, wechat
Md
✍ 一款高度简洁的微信 Markdown 编辑器:支持 Markdown 所有基础语法、色盘取色、一键复制并粘贴到公众号后台、多图上传、一键下载文档、自定义 CSS 样式、一键重置等特性
Stars: ✭ 2,242 (+1737.7%)
Mutual labels:  markdown, wechat
Wechat ayibang
微信小程序仿阿姨帮
Stars: ✭ 121 (-0.82%)
Mutual labels:  wechat
Paste Markdown
Paste spreadsheet cells as a Markdown table.
Stars: ✭ 119 (-2.46%)
Mutual labels:  markdown
Customizer
Kanboard - Customizer adds GUI for logo, favicon and themes
Stars: ✭ 120 (-1.64%)
Mutual labels:  themes
Hello imgui
Hello, Dear ImGui: cross-platform Gui apps for Windows / Mac / Linux / iOS / Android / Emscripten with the simplicity of a "Hello World" app
Stars: ✭ 120 (-1.64%)
Mutual labels:  easy-to-use
Wx Miniprogram Boilerplate
基于Gulp微信小程序开发工作流,支持less样式编写,支持ESLint代码检查等功能
Stars: ✭ 122 (+0%)
Mutual labels:  wechat
Wwdc Recap
A collection of session summaries in markdown format, from WWDC 20, 19 & 17
Stars: ✭ 121 (-0.82%)
Mutual labels:  markdown
Wiki
Awesome way to learn together! 🤣
Stars: ✭ 119 (-2.46%)
Mutual labels:  markdown
Neworld For Whmcs
NeWorld For WHMCS
Stars: ✭ 119 (-2.46%)
Mutual labels:  themes
Pidgin Wechat
pidgin plugin for web wechat protocol
Stars: ✭ 119 (-2.46%)
Mutual labels:  wechat

makrdown-css

pypi

Markdown css is a command tool to convert css style into markdown inline style.

中文文档 演示

Theme Demo

apollo.css

ocean.css

simple.css

style.css

typing.css

xiaolai.css

Install

maxOS

xcode-select --install
pip install markdown-css

linux

apt-get install libxml2-dev libxslt1-dev python-dev
apt-get install python-lxml
pip install markdown-css

Getting started

pip install markdown-css
mkdir public
touch style.css
markdown -h
markdown-css markdown.html --style=style.css --out=public

Themes

https://github.com/wecatch/markdown-css/tree/master/themes

Demo

git clone https://github.com/wecatch/markdown-css.git
cd themes
markdown-css markdown.html --style=simple.css --out=public

Selector

markdown-css support css selector like these:

element selector

p {
    margin: 10px 0;
}

multi element selector

h1,p,h2,pre {
    color: #333;
}

all element

* {
    font-size: 14px
}

pseudo-selector

h1:before {
    content: '#'
}

child element seletor

blockquote p {
    color:#888;
}

Pseudo-selector can't be used in inline-style, these selectos are write into <style> tag

中文介绍

markdown-css 是一个命令行工具用来为无 CSS 的 html 文档添加 CSS,渲染之后的 html 可以直接粘贴在微信公众号使用。

要使用 markdown-css ,通常你需要一款类似 typora 的编辑器,用 markdown 完成写作之后导出为不带任何 style 的 html 文档:

然后再需要提供一个主题样式,仓库里已经有了一些主题样式可以使用,用以下命令完成转换:

markdown-css markdown.html --style=style.css --out=public

渲染之后的文档会导出在同目录下的 public 中,用 Chrome 浏览器打开渲染之后的同名文档,复制粘贴到微信公众号编辑器即可。

注意: 由于微信公众号对 ul 和 ol 进行了转换,markdown-css 针对这两种标签进行了特殊处理,并且提供了 render 参数来选择是否要特殊处理 ul 和 ol,默认情况为是,可以根据自己的需要不特殊处理 ul 和 ol,只要 render 不等于 wechat 即可。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].