Giter Site home page Giter Site logo

yilirong1992 / markdown-html-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wxqee/markdown-html-example

0.0 1.0 0.0 124 KB

An example explains how to use **jquery** and **markdown-it** libraries to display markdown files in system as a web site/pages.

HTML 95.35% Shell 4.65%

markdown-html-example's Introduction

这是一个 Markdown 案例 readme.md

这里展示一下起步的 HTML

创建一个文件 index.html,并用编辑器将下边的文字填入这个文件。

<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>HELLO</title>
    <link href="//cdn.bootcss.com/skeleton/2.0.4/skeleton.min.css" rel="stylesheet">
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
  </head>
  <body>
    <h1>你好,世界!</h1>
  </body>
</html>

如何启动一个临时的 HTTP 服务器

首先你得保证你的PC已经安装了 python 环境,点击这里下载。

安装 python 以后,你可以查看是否安装成功。

$ python --version
Python 2.7.10

这就表示 python 2.7 已经安装成功。

接下来启动 HTTP 服务器:

$ python -m SimpleHTTPServer 8000
Serving HTTP on 0.0.0.0 port 8000 ...

意思是你已经在当前文件夹下,启动了一个外网都可以访问的 HTTP 服务器,并且落在了 8000 端口上。

接下来你就可以访问这个资源了。

markdown-html-example's People

Contributors

wxqee avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.