GithubHelp home page GithubHelp logo

Docs/source for keybase.pub? about kbfs HOT 7 CLOSED

keybase avatar keybase commented on August 18, 2024
Docs/source for keybase.pub?

from kbfs.

Comments (7)

kevinSuttle avatar kevinSuttle commented on August 18, 2024 1

Right, so the main page mentions "it serves Markdown", but can you go into more specifics?

Which MD rendering processor?
Can it handle JS?
What kind of server?
Etc.

from kbfs.

malgorithms avatar malgorithms commented on August 18, 2024 1

sure, it's the npm marked module in gfm mode (which is some attempt at matching github flavored; not sure how accurate is), and yeah, scripts are turned on. The idea being that you can straight-up serve whatever HTML you want, including scripts, so sanitizing the markdown seems unnecessary.

here are the precise settings, although, as a reminder, it's subject to change as we're in early testing:

      options:
        gfm:          true
        tables:       true
        breaks:       false
        pedantic:     false
        sanitize:     false
        smartLists:   true
        smartypants:  false

feedback appreciated.

from kbfs.

strib avatar strib commented on August 18, 2024

The keybase.pub site is not open source, but the part that interfaces with kbfs is simple: the webserver just mounts /keybase and serves/reads data directly via the KBFS mount. Does that help? Do you have other specific questions?

from kbfs.

cjb avatar cjb commented on August 18, 2024

(@strib, think you meant to say is not open source.)

from kbfs.

strib avatar strib commented on August 18, 2024

Derp, edited.

from kbfs.

strib avatar strib commented on August 18, 2024

Oh I see. @malgorithms can you provide some details?

from kbfs.

kevinSuttle avatar kevinSuttle commented on August 18, 2024

Awesome! Thanks @malgorithms!

from kbfs.

Related Issues (20)

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.