Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

support markdown with other language/types#49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 2 commits intomasterfromfix/markdown
Nov 3, 2019
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 3 additions & 27 deletionspackage-lock.json
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

1 change: 1 addition & 0 deletionspackage.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -43,6 +43,7 @@
"concurrently": "^5.0.0",
"dotenv": "^8.2.0",
"glob": "^7.1.5",
"graphql": "^14.5.8",
"mocha": "^6.2.2",
"prettier": "^1.18.2",
"tslint": "^5.20.0",
Expand Down
6 changes: 6 additions & 0 deletionsweb-app/package-lock.json
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

1 change: 1 addition & 0 deletionsweb-app/package.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -55,6 +55,7 @@
"@types/jest": "^24.0.21",
"@types/markdown-it": "0.0.9",
"@types/node": "^12.12.5",
"@types/prismjs": "^1.16.0",
"@types/ramda": "^0.26.33",
"@types/react": "^16.9.11",
"@types/react-dom": "^16.9.3",
Expand Down
3 changes: 2 additions & 1 deletionweb-app/src/components/Markdown/index.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,8 @@ import markdownEmoji from 'markdown-it-emoji'
import prism from 'markdown-it-prism'
import * as React from 'react'

import './prism.css'
// load prism styles & language support
import './prism'

// markdown highlighter instance
const md: MarkdownIt = new MarkdownIt({
Expand Down
127 changes: 0 additions & 127 deletionsweb-app/src/components/Markdown/prism.css
View file
Open in desktop

This file was deleted.

13 changes: 13 additions & 0 deletionsweb-app/src/components/Markdown/prism.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
// Themes - more at https://prismjs.com/examples.html
import 'prismjs/themes/prism-tomorrow.css'

// Language support
import 'prismjs/components/prism-bash'
import 'prismjs/components/prism-clike'
import 'prismjs/components/prism-css'
import 'prismjs/components/prism-git'
import 'prismjs/components/prism-javascript'
import 'prismjs/components/prism-json'
import 'prismjs/components/prism-sql'
import 'prismjs/components/prism-typescript'
// TODO: import all - current list only supports js related
2 changes: 1 addition & 1 deletionweb-app/stories/Level.stories.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -84,7 +84,7 @@ storiesOf('Level', module)
steps: [
{
id: 'L1:S1',
content: 'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!',
content: 'Should support markdown test\n ```shell\nnpn install some-packagen```\nwhew it works!',
setup: { commits: ['a4679b1'], commands: [], files: ['package.json'] },
solution: {
commits: ['7c64508'],
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp