Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 13b48b3

Browse files
committed
fix(fusumarc): revert languages section
1 parent 2486048 commit 13b48b3

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

packages/fusuma/src/configs/babelrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function babelrc({ languages, plugins = [], theme = 'default' } = {}) {
2828
[
2929
'prismjs',
3030
{
31-
languages: [],
31+
languages,
3232
plugins,
3333
theme,
3434
css: true,

packages/fusuma/src/configs/fusumarc.js

-12
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,6 @@ const config = {
4848

4949
const configFileNames = ['.fusumarc.yml', '.fusumarc.js'];
5050

51-
function getConfigYaml() {
52-
const configYaml = yaml.dump(config).replace(/null/g, '');
53-
54-
return configYaml
55-
.split('\n')
56-
.map((s) => {
57-
if (s.substr(-1) === ' ') return s.slice(0, -1);
58-
else return s;
59-
})
60-
.join('\n');
61-
}
62-
6351
async function init(baseDir) {
6452
{
6553
const data = await readFileAsync(join(__dirname, 'templates', 'fusumarc.yml'), 'utf8');

samples/debug/.fusumarc.yml

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ slide:
1010
targetBlank: true
1111
showIndex: true
1212
isVertical: false
13+
code:
14+
languages:
15+
- javascript
16+
- cpp
17+
- python
1318
extends:
1419
js: main.js
1520
build:

0 commit comments

Comments
 (0)