How to use markdownz - 2 common examples

To help you get started, we’ve selected a few markdownz examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zooniverse / front-end-monorepo / packages / lib-react-components / lib / components / tutorial.js View on Github external
{ type: 'submit', className: 'major-button' },
              'Let\u2019s go!'
            );
          } else {
            button = _react2.default.createElement(
              'button',
              { type: 'button', className: 'standard-button', onClick: _this2.handleNextClick },
              'Continue'
            );
          }

          return _react2.default.createElement(
            _mediaCard2.default,
            { key: step._key, className: 'tutorial-step', src: source },
            _react2.default.createElement(
              _markdownz.Markdown,
              null,
              step.content
            ),
            _react2.default.createElement('hr', null),
            _react2.default.createElement(
              'p',
              null,
              button
            )
          );
        })
      );
github zooniverse / Panoptes-Front-End / app / pages / project / landing.jsx View on Github external
import React from 'react';
import markdownz from 'markdownz';
import apiClient from 'panoptes-client/lib/api-client';
import talkClient from 'panoptes-client/lib/talk-client';
import FinishedBanner from './finished-banner.cjsx';
import TalkImages from './talk-images';
import ProjectMetadata from './metadata';
import ProjectHomeWorkflowButtons from './home-workflow-buttons';

const Markdown = markdownz.Markdown;

export default class ProjectHomePage extends React.Component {
  constructor(props) {
    super(props);

    this.state = {
      showWorkflowButtons: false,
      talkImages: [],
    };

    this.showWorkflowButtons = this.showWorkflowButtons.bind(this);
  }

  componentWillMount() {
    talkClient.type('comments').get({ section: `project-${this.props.project.id}`, page_size: 6, sort: '-created_at', focus_type: 'Subject' })
    .then((comments) => {

markdownz

Markdown viewer and editor for the Zooniverse

Apache-2.0
Latest version published 11 months ago

Package Health Score

65 / 100
Full package analysis

Popular markdownz functions