LIGHT

  • News
  • Docs
  • Community
  • Reddit
  • GitHub

Blackfriday Options

taskLists
default: true Blackfriday flag: Purpose: false turns off GitHub-style automatic task/TODO list generation.
smartypants
default: true Blackfriday flag: HTML_USE_SMARTYPANTS Purpose: false disables smart punctuation substitutions, including smart quotes, smart dashes, smart fractions, etc. If true, it may be fine-tuned with the angledQuotes, fractions, smartDashes, and latexDashes flags (see below).
smartypantsQuotesNBSP
default: false Blackfriday flag: HTML_SMARTYPANTS_QUOTES_NBSP Purpose: true enables French style Guillemets with non-breaking space inside the quotes.
angledQuotes
default: false Blackfriday flag: HTML_SMARTYPANTS_ANGLED_QUOTES Purpose: true enables smart, angled double quotes. Example: “Hugo” renders to «Hugo» instead of “Hugo”.
fractions
default: true Blackfriday flag: HTML_SMARTYPANTS_FRACTIONS Purpose: false disables smart fractions. Example: 5/12 renders to 5⁄12(<sup>5</sup>&frasl;<sub>12</sub>). Caveat: Even with fractions = false, Blackfriday still converts 1/2, 1/4, and 3/4 respectively to ½ (&frac12;), ¼ (&frac14;) and ¾ (&frac34;), but only these three.
smartDashes
default: true Blackfriday flag: HTML_SMARTY_DASHES Purpose: false disables smart dashes; i.e., the conversion of multiple hyphens into an en-dash or em-dash. If true, its behavior can be modified with the latexDashes flag below.
latexDashes
default: true Blackfriday flag: HTML_SMARTYPANTS_LATEX_DASHES Purpose: false disables LaTeX-style smart dashes and selects conventional smart dashes. Assuming smartDashes: If true, -- is translated into – (&ndash;), whereas --- is translated into — (&mdash;). However, spaced single hyphen between two words is translated into an en dash— e.g., “12 June - 3 July” becomes 12 June &ndash; 3 July upon rendering.
hrefTargetBlank
default: false Blackfriday flag: HTML_HREF_TARGET_BLANK Purpose: true opens external links in a new window or tab.
plainIDAnchors
default true Blackfriday flag: FootnoteAnchorPrefix and HeaderIDSuffix Purpose: true renders any heading and footnote IDs without the document ID. Example: renders #my-heading instead of #my-heading:bec3ed8ba720b970
extensions
default: [] Blackfriday flag: EXTENSION_* Purpose: Enable one or more Blackfriday’s Markdown extensions (if they aren’t Hugo defaults). Example: Include hardLineBreak in the list to enable Blackfriday’s EXTENSION_HARD_LINK_BREAK. See Blackfriday extensions section for more information.
extensionsmask
default: [] Blackfriday flag: EXTENSION_* Purpose: Enable one or more of Blackfriday’s Markdown extensions (if they aren’t Hugo defaults). Example: Include autoHeaderIds as false in the list to disable Blackfriday’s EXTENSION_AUTO_HEADER_IDS. See Blackfriday extensions section for more information.

Blackfriday extensions

noIntraEmphasis
default: enabled Purpose: The “_” character is commonly used inside words when discussing code, so having Markdown interpret it as an emphasis command is usually the wrong thing. When enabled, Blackfriday lets you treat all emphasis markers as normal characters when they occur inside a word.
tables
default: enabled Purpose: When enabled, tables can be created by drawing them in the input using the below syntax: Example:
     Name | Age
  --------|------
      Bob | 27
    Alice | 23
fencedCode
default: enabled Purpose: When enabled, in addition to the normal 4-space indentation to mark code blocks, you can explicitly mark them and supply a language (to make syntax highlighting simple).

You can use 3 or more backticks to mark the beginning of the block, and the same number to mark the end of the block.

Example:

   ```md
  # Heading Level 1
  Some test
  ## Heading Level 2
  Some more test
  ```
autolink
default: enabled Purpose: When enabled, URLs that have not been explicitly marked as links will be converted into links.
strikethrough
default: enabled Purpose: When enabled, text wrapped with two tildes will be crossed out. Example: ~~crossed-out~~
laxHtmlBlocks
default: disabled Purpose: When enabled, loosen up HTML block parsing rules.
spaceHeaders
default: enabled Purpose: When enabled, be strict about prefix header rules.
hardLineBreak
default: disabled Purpose: When enabled, newlines in the input translate into line breaks in the output.
tabSizeEight
default: disabled Purpose: When enabled, expand tabs to eight spaces instead of four.
footnotes
default: enabled Purpose: When enabled, Pandoc-style footnotes will be supported. The footnote marker in the text that will become a superscript text; the footnote definition will be placed in a list of footnotes at the end of the document. Example:
  This is a footnote.[^1]

  [^1]: the footnote text.
noEmptyLineBeforeBlock
default: disabled Purpose: When enabled, no need to insert an empty line to start a (code, quote, ordered list, unordered list) block.
headerIds
default: enabled Purpose: When enabled, allow specifying header IDs with {#id}.
titleblock
default: disabled Purpose: When enabled, support Pandoc-style title blocks.
autoHeaderIds
default: enabled Purpose: When enabled, auto-create the header ID’s from the headline text.
backslashLineBreak
default: enabled Purpose: When enabled, translate trailing backslashes into line breaks.
definitionLists
default: enabled Purpose: When enabled, a simple definition list is made of a single-line term followed by a colon and the definition for that term. Example:
  Cat
  : Fluffy animal everyone likes

  Internet
  : Vector of transmission for pictures of cats

Terms must be separated from the previous definition by a blank line.

joinLines
default: enabled Purpose: When enabled, delete newlines and join the lines.
  • About Light
    • Overview
    • Testimonials
    • What is Light
    • Features
    • Principles
    • Benefits
    • Roadmap
    • Community
    • Articles
    • Videos
    • License
    • Why Light Platform
  • Getting Started
    • Get Started Overview
    • Environment
    • Light Codegen Tool
    • Light Rest 4j
    • Light Tram 4j
    • Light Graphql 4j
    • Light Hybrid 4j
    • Light Eventuate 4j
    • Light Oauth2
    • Light Portal Service
    • Light Proxy Server
    • Light Router Server
    • Light Config Server
    • Light Saga 4j
    • Light Session 4j
    • Webserver
    • Websocket
    • Spring Boot Servlet
  • Architecture
    • Architecture Overview
    • API Category
    • API Gateway
    • Architecture Patterns
    • CQRS
    • Eco System
    • Event Sourcing
    • Fail Fast vs Fail Slow
    • Integration Patterns
    • JavaEE declining
    • Key Distribution
    • Microservices Architecture
    • Microservices Monitoring
    • Microservices Security
    • Microservices Traceability
    • Modular Monolith
    • Platform Ecosystem
    • Plugin Architecture
    • Scalability and Performance
    • Serverless
    • Service Collaboration
    • Service Mesh
    • SOA
    • Spring is bloated
    • Stages of API Adoption
    • Transaction Management
    • Microservices Cross-cutting Concerns Options
    • Service Mesh Plus
    • Service Discovery
  • Design
    • Design Overview
    • Design First vs Code First
    • Desgin Pattern
    • Service Evolution
    • Consumer Contract and Consumer Driven Contract
    • Handling Partial Failure
    • Idempotency
    • Server Life Cycle
    • Environment Segregation
    • Database
    • Decomposition Patterns
    • Http2
    • Test Driven
    • Multi-Tenancy
    • Why check token expiration
    • WebServices to Microservices
  • Cross-Cutting Concerns
    • Concerns Overview
  • API Styles
    • Light-4j for absolute performance
    • Style Overview
    • Distributed session on IMDG
    • Hybrid Serverless Modularized Monolithic
    • Kafka - Event Sourcing and CQRS
    • REST - Representational state transfer
    • Web Server with Light
    • Websocket with Light
    • Spring Boot Integration
    • Single Page Application
    • GraphQL - A query language for your API
    • Light IBM MQ
    • Light AWS Lambda
    • Chaos Monkey
  • Infrastructure Services
    • Service Overview
    • Light Proxy
    • Light Mesh
    • Light Router
    • Light Portal
    • Messaging Infrastructure
    • Centralized Logging
    • COVID-19
    • Light OAuth2
    • Metrics and Alerts
    • Config Server
    • Tokenization
    • Light Controller
  • Tool Chain
    • Tool Chain Overview
  • Utility Library
  • Service Consumer
    • Service Consumer
  • Development
    • Development Overview
  • Deployment
    • Deployment Overview
    • Frontend Backend
    • Linux Service
    • Windows Service
    • Install Eventuate on Windows
    • Secure API
    • Client vs light-router
    • Memory Limit
    • Deploy to Kubernetes
  • Benchmark
    • Benchmark Overview
  • Tutorial
    • Tutorial Overview
  • Troubleshooting
    • Troubleshoot
  • FAQ
    • FAQ Overview
  • Milestones
  • Contribute
    • Contribute to Light
    • Development
    • Documentation
    • Example
    • Tutorial
“” was last updated: April 2, 2019: fixes #62 add Chinese language for the document site (5c820aa)
Improve this page
  • News
  • Docs
  • Community
  • Reddit
  • GitHub
  • About Light
  • Getting Started
  • Architecture
  • Design
  • Cross-Cutting Concerns
  • API Styles
  • Infrastructure Services
  • Tool Chain
  • Utility Library
  • Service Consumer
  • Development
  • Deployment
  • Benchmark
  • Tutorial
  • Troubleshooting
  • FAQ
  • Milestones
  • Contribute