• <GetStart>
  • CSPro User's Guide
    • The CSPro System
    • Data Dictionary Module
    • The CSPro Language
    • Data Entry Module
    • Batch Editing Applications
    • Tabulation Applications
    • Data Sources
    • CSPro Statements and Functions
    • Text Templates
    • Templated Reporting System
    • HTML, Markdown, and JavaScript Integration
      • HTML in CSPro
      • Markdown Use in CSPro
      • Markdown Syntax
      • Localhost URL
      • Data URL
      • External Libraries
      • JSON Primer
      • HTML Dialog Boxes
      • JavaScript Interface (deprecated)
    • Action Invoker
    • Appendix
  • <CSEntry>
  • <CSBatch>
  • <CSTab>
  • <DataManager>
  • <TextView>
  • <TblView>
  • <CSFreq>
  • <CSDeploy>
  • <CSPack>
  • <CSDiff>
  • <CSConcat>
  • <Excel2CSPro>
  • <CSExport>
  • <CSIndex>
  • <CSReFmt>
  • <CSSort>
  • <ParadataConcat>
  • <ParadataViewer>
  • <CSCode>
  • <CSDocument>
  • <CSView>
  • <CSWeb>

Markdown Use in CSPro

Overview
Markdown is a lightweight markup language designed for creating formatted text using a plain-text syntax. Markdown is often converted to HTML for display, but unlike HTML, which uses verbose tags, Markdown's syntax is simpler, using common punctuation characters, such as **bold** or *italic*. Because of its simplicity and portability, Markdown has become a standard in technical writing, on collaborative platforms such as GitHub, and in CSPro as an alternative to using HTML.
The Markdown syntax is well-documented online, though elements that may be useful are highlighted on the Markdown Syntax page. CSPro uses MD4C, an implementation of CommonMark with elements of GitHub Flavored Markdown. When rendering Markdown documents, CSPro formats the content using CSS based on GitHub's style conventions.
Markdown in CSPro
Markdown can be used in CSPro in the following ways:
  • As a way to specify question text.
  • As a format for templated reports.
  • Viewing Markdown files (with the extension .md) using the view logic function or CSView.
  • Editing and viewing Markdown files using CSCode.
  • As part of CSPro Documents using the <md> tag.
When viewing Markdown, CSPro will automatically convert Markdown to HTML.
See also: Markdown Syntax, HTML in CSPro