Code blocks in Github theme are in itallic instead of monospace font

Marcin Ignac's Avatar

Marcin Ignac

23 Nov, 2017 10:27 PM

// Please enter a detailed description of the issue // Description of the issue: Code blocks in Github theme are in itallic instead of monospace font

// Please enter a list of steps required to reproduce the issue // Steps to reproduce:

  1. Open attached README.me

// If applicable please attach a sample document that causes the issue for you.

pex-context

Modern WebGL state wrapper for PEX. With pex-context you allocate GPU resources (textures, buffers), setup state pipelines and passes and combine them together in commands.

Example

const createContext = require('pex-context')  
const createCube = require('primitive-cube')  
const Mat4 = require('pex-math/Mat4')

const ctx = createContext({ width: 640, height: 480 })  
const cube = createCube()

const cmd = {  
  pass: ctx.pass({
    clearColor: [0.2, 0.2, 0.2, 1],
    clearDepth: 1
  }),
  pipeline: ctx.pipeline({
    depthTest: true,
    vert: `
      attribute vec3 aPosition;
      attribute vec3 aNormal;
      uniform mat4 uProjectionMatrix;
      uniform mat4 uViewMatrix;
      varying vec3 vNormal;
      void main () {
        gl_Position = uProjectionMatrix * uViewMatrix * vec4(aPosition, 1.0);
        vNormal = aNormal;
      }
    `,
    frag: `
      precision mediump float;
      varying vec3 vNormal;
      void main () {
        gl_FragColor.rgb = vNormal;
        gl_FragColor.a = 1.0;
      }
    `
  }),
  attributes: {
    aPosition: ctx.vertexBuffer(cube.positions),
    aNormal: ctx.vertexBuffer(cube.normals)
  },
  indices: ctx.indexBuffer(cube.cells),
  uniforms: {
    uProjectionMatrix: Mat4.perspective(Mat4.create(), 45, 640 / 480, 0.1, 100),
    uViewMatrix: Mat4.lookAt(Mat4.create(), [2, 2, 5], [0, 0, 0], [0, 1, 0])
  }
}

ctx.frame(() => {  
  ctx.submit(cmd)
})
<pre><code>
# API



// Configuration (do not edit)
Marked 2 930 (Mac App Store)
OS X Version: 10.13.1
---
additionalMathJaxConfig: 
allowPageBreakInCode: 1
bookTxtIsLeanpub: 0
summaryMdIsGitBook: 0
codeIsPoetry: 1
collapsibleHeadlines: 0
convertGithubCheckboxes: 1
convertYAMLToMMD: 0
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 3
defaultProcessor: Discount (GFM)
enableMiniMap: 0
excludeBlockQuotesFromCounts: 0
excludeFootnotesFromCounts: 0
excludeVerbatimFromCounts: 0
excludeCaptionsFromCounts: 0
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: 1
h1IsPageBreak: 0
h2IsPageBreak: 0
hrIsPageBreak: 0
includeMathJax: 1
limitTextWidth: 0
minimalJavaScript: 0
outlineModeExtensions: 
permissionGranted: 0
printHeaderBottomLeft: 
printHeaderBottomRight: 
printHeaderFooterFirstPage: 0
printHeaderTopLeft: 
printHeaderTopRight: 
processHTMLFiles: 1
removeMetadataForPreview: 0
removeYAMLHeaders: 0
scrollToEdit: 1
shouldDetectCritic: 1
shouldHighlightMarkupErrors: 0
shouldLoadCritic: 0
syntaxHighlight: 1</code>
</pre>
  1. 1 Posted by Marcin Ignac on 23 Nov, 2017 10:34 PM

    Marcin Ignac's Avatar

    I had verbatim code blocks rendered as poetry checkbox on...

    This issue can be closed.

  2. Support Staff 2 Posted by Brett on 24 Nov, 2017 05:54 PM

    Brett's Avatar

    👍🏼

  3. Brett closed this discussion on 24 Nov, 2017 05:54 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac