mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
update
This commit is contained in:
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
/node_modules
|
||||||
|
/*.log
|
||||||
99
.github/workflows/build-latex.yml
vendored
Normal file
99
.github/workflows/build-latex.yml
vendored
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
name: CI/CD
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Compile LaTeX document
|
||||||
|
uses: xu-cheng/latex-action@v2
|
||||||
|
with:
|
||||||
|
root_file: |
|
||||||
|
a4.tex
|
||||||
|
a5.tex
|
||||||
|
a6.tex
|
||||||
|
working_directory: latex
|
||||||
|
latexmk_use_lualatex: true
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: pdfs
|
||||||
|
path: latex/*.pdf
|
||||||
|
update-readme:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
|
|
||||||
|
- name: Build READM.md
|
||||||
|
run: node readme/index.js > README.md
|
||||||
|
|
||||||
|
- uses: EndBug/add-and-commit@v7
|
||||||
|
with:
|
||||||
|
add: README.md
|
||||||
|
author_name: Git Actions
|
||||||
|
author_email: gitactions@example.com
|
||||||
|
message: Updated README.md
|
||||||
|
release:
|
||||||
|
needs: [build]
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: pdfs
|
||||||
|
|
||||||
|
- name: Display structure of downloaded files
|
||||||
|
run: ls -R
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: v1.${{ github.run_id }}
|
||||||
|
release_name: Release v1.${{ github.run_id }}
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
|
||||||
|
- name: Upload A4 Asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||||
|
asset_path: ./a4.pdf
|
||||||
|
asset_name: a4.pdf
|
||||||
|
asset_content_type: application/pdf
|
||||||
|
|
||||||
|
- name: Upload A5 Asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||||
|
asset_path: ./a5.pdf
|
||||||
|
asset_name: a5.pdf
|
||||||
|
asset_content_type: application/pdf
|
||||||
|
|
||||||
|
- name: Upload A6 Asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||||
|
asset_path: ./a6.pdf
|
||||||
|
asset_name: a6.pdf
|
||||||
|
asset_content_type: application/pdf
|
||||||
@@ -1,96 +1,131 @@
|
|||||||
// https://redstapler.co/cool-nebula-background-effect-three-js/
|
// https://redstapler.co/cool-nebula-background-effect-three-js/
|
||||||
|
|
||||||
import * as THREE from 'three';
|
import * as THREE from 'three';
|
||||||
import React, { useEffect } from 'react';
|
import { Canvas, useFrame, useThree } from '@react-three/fiber';
|
||||||
|
import React, { useEffect, useMemo, useState } from 'react';
|
||||||
|
|
||||||
const setup = () => {
|
interface CloudProps {
|
||||||
let scene, camera, renderer;
|
texture: THREE.Texture;
|
||||||
let cloudParticles = [];
|
position: [number, number, number];
|
||||||
|
rotation: {
|
||||||
function init() {
|
x: number;
|
||||||
scene = new THREE.Scene();
|
y: number;
|
||||||
camera = new THREE.PerspectiveCamera(60,window.innerWidth / window.innerHeight,1,1000);
|
z: number;
|
||||||
camera.position.z = 1;
|
|
||||||
camera.rotation.x = 1.16;
|
|
||||||
camera.rotation.y = -0.12;
|
|
||||||
camera.rotation.z = 0.27;
|
|
||||||
let ambient = new THREE.AmbientLight(0x555555);
|
|
||||||
scene.add(ambient);
|
|
||||||
renderer = new THREE.WebGLRenderer();
|
|
||||||
renderer.setSize(window.innerWidth,window.innerHeight);
|
|
||||||
scene.fog = new THREE.FogExp2(0x03544e, 0.001);
|
|
||||||
renderer.setClearColor(scene.fog.color);
|
|
||||||
renderer.domElement.style.position = 'fixed';
|
|
||||||
renderer.domElement.style.top = '0';
|
|
||||||
renderer.domElement.style.left = '0';
|
|
||||||
renderer.domElement.style.width = '100%';
|
|
||||||
renderer.domElement.style.height = '100%';
|
|
||||||
renderer.domElement.style.zIndex = -1;
|
|
||||||
renderer.domElement.style.opacity = 1;
|
|
||||||
|
|
||||||
document.body.appendChild(renderer.domElement);
|
|
||||||
addParticles();
|
|
||||||
addLights();
|
|
||||||
render();
|
|
||||||
}
|
|
||||||
|
|
||||||
const addParticles = () => {
|
|
||||||
let loader = new THREE.TextureLoader();
|
|
||||||
loader.load("/images/smoke.png", (texture) => {
|
|
||||||
const cloudGeo = new THREE.PlaneBufferGeometry(500,500);
|
|
||||||
const cloudMaterial = new THREE.MeshLambertMaterial({
|
|
||||||
map:texture,
|
|
||||||
transparent: true
|
|
||||||
});
|
|
||||||
for(let p=0; p<50; p++) {
|
|
||||||
let cloud = new THREE.Mesh(cloudGeo, cloudMaterial);
|
|
||||||
cloud.position.set(
|
|
||||||
Math.random()*800 -400,
|
|
||||||
500,
|
|
||||||
Math.random()*500-500
|
|
||||||
);
|
|
||||||
cloud.rotation.x = 1.16;
|
|
||||||
cloud.rotation.y = -0.12;
|
|
||||||
cloud.rotation.z = Math.random()*2*Math.PI;
|
|
||||||
cloud.material.opacity = 0.55;
|
|
||||||
cloudParticles.push(cloud);
|
|
||||||
scene.add(cloud);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const addLights = () => {
|
|
||||||
let directionalLight = new THREE.DirectionalLight(0xff8c19);
|
|
||||||
directionalLight.position.set(0,0,1);
|
|
||||||
scene.add(directionalLight);
|
|
||||||
|
|
||||||
let orangeLight = new THREE.PointLight(0xcc6600,50,450,1.7);
|
|
||||||
orangeLight.position.set(200,300,100);
|
|
||||||
scene.add(orangeLight);
|
|
||||||
let redLight = new THREE.PointLight(0xd8547e,50,450,1.7);
|
|
||||||
redLight.position.set(100,300,100);
|
|
||||||
scene.add(redLight);
|
|
||||||
let blueLight = new THREE.PointLight(0x3677ac,50,450,1.7);
|
|
||||||
blueLight.position.set(300,300,200);
|
|
||||||
scene.add(blueLight);
|
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
function render() {
|
const initialClouds = new Array(30).fill(undefined).map((_, i) => ({
|
||||||
cloudParticles.forEach(p => {
|
name: `id_${i}`,
|
||||||
p.rotation.z -=0.001;
|
position: [
|
||||||
});
|
Math.random() * 800 - 400,
|
||||||
renderer.render(scene,camera);
|
500,
|
||||||
requestAnimationFrame(render);
|
Math.random() * 500 - 500,
|
||||||
}
|
] as [number, number, number],
|
||||||
|
rotation: {
|
||||||
|
x: 1.16,
|
||||||
|
y: -0.12,
|
||||||
|
z: Math.random() * 2 * Math.PI,
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
|
||||||
init();
|
const Cloud: React.FC<CloudProps> = ({ texture, position, rotation }) => {
|
||||||
|
return (
|
||||||
|
<mesh position={position} rotation={[ rotation.x, rotation.y, rotation.z ]}>
|
||||||
|
<planeBufferGeometry args={[500, 500]} />
|
||||||
|
<meshLambertMaterial opacity={.5} map={texture} transparent={true} />
|
||||||
|
</mesh>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const Background: React.FC<{}> = () => {
|
const Clouds: React.FC<{}> = () => {
|
||||||
|
const { camera } = useThree();
|
||||||
|
const loader = useMemo(() => new THREE.TextureLoader(), []);
|
||||||
|
const [texture, setTexture] = useState<THREE.Texture | undefined>();
|
||||||
|
const [clouds, setClouds] = useState(initialClouds);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setup();
|
console.log(camera);
|
||||||
|
camera.rotateX(1.16);
|
||||||
|
camera.rotateY(-0.12);
|
||||||
|
camera.rotateZ(0.27);
|
||||||
}, []);
|
}, []);
|
||||||
return <></>
|
|
||||||
|
useEffect(() => {
|
||||||
|
loader.load('images/smoke.png', (loadedTexture) => {
|
||||||
|
setTexture(loadedTexture);
|
||||||
|
});
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
useFrame(() => {
|
||||||
|
setClouds(current => current.map(c => ({
|
||||||
|
...c,
|
||||||
|
rotation: {
|
||||||
|
...c.rotation,
|
||||||
|
z: c.rotation.z -= 0.001,
|
||||||
|
}
|
||||||
|
})));
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!texture) {
|
||||||
|
return <></>;
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{clouds.map((cloud) => (
|
||||||
|
<Cloud
|
||||||
|
key={cloud.name}
|
||||||
|
texture={texture}
|
||||||
|
position={cloud.position}
|
||||||
|
rotation={cloud.rotation}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
const style = {
|
||||||
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
position: 'fixed' as any,
|
||||||
|
zIndex: -1,
|
||||||
|
}
|
||||||
|
|
||||||
|
const Background: React.FC<{}> = () => {
|
||||||
|
const fog = useMemo(() => new THREE.FogExp2(0x03544e, 0.001), []);
|
||||||
|
const [aspect, setAspect] = useState(global.window ? window.innerWidth / window.innerHeight : 1);
|
||||||
|
if (!global.window) {
|
||||||
|
return <Canvas style={style}><></></Canvas>
|
||||||
|
}
|
||||||
|
useEffect(() => {
|
||||||
|
const update = () => {
|
||||||
|
setAspect(window.innerWidth / window.innerHeight);
|
||||||
|
};
|
||||||
|
window.addEventListener('resize', update);
|
||||||
|
return () => {
|
||||||
|
window.removeEventListener('resize', update);
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
return (
|
||||||
|
<Canvas style={style}>
|
||||||
|
<color attach="background" args={[0x03544e]} />
|
||||||
|
<scene fog={fog}>
|
||||||
|
<perspectiveCamera
|
||||||
|
args={[60, aspect, 1, 1000]}
|
||||||
|
aspect={aspect}
|
||||||
|
position={[0, 0, 0]}
|
||||||
|
/>
|
||||||
|
<ambientLight args={[0x555555]} />
|
||||||
|
<directionalLight args={[0xff8c19]} position={[0,0,1]} />
|
||||||
|
<pointLight args={[0xcc6600, 50, 450, 1.7]} position={[200,300,100]} />
|
||||||
|
<pointLight args={[0xd8547e, 50, 450, 1.7]} position={[100,300,100]} />
|
||||||
|
<pointLight args={[0x3677ac, 50, 450, 1.7]} position={[300,300,200]} />
|
||||||
|
<Clouds />
|
||||||
|
</scene>
|
||||||
|
</Canvas>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Background;
|
export default Background;
|
||||||
|
|||||||
@@ -1,28 +1,24 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
import Image from 'next/image'
|
||||||
|
import image from '../public/images/me.jpg';
|
||||||
|
|
||||||
const Wrapper = styled.div`
|
const Wrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 40px;
|
padding: 80px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const ImageWrapper = styled.div`
|
const ImageWrapper = styled.div`
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: solid 15px rgba(255, 255, 255, .5);
|
border: solid 30px rgba(255, 255, 255, .5);
|
||||||
box-shadow: 0 0 15px rgba(0, 0, 0, .5);
|
box-shadow: 0 0 35px rgba(255, 255, 255, .5);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin: 0 40px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 360px;
|
max-width: 360px;
|
||||||
`;
|
position: relative;
|
||||||
|
|
||||||
const Image = styled.div<{ src: string }>`
|
|
||||||
width: 100%;
|
|
||||||
background: url('${({ src }) => src}');
|
|
||||||
background-size: cover;
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const Spacer = styled.div`
|
const Spacer = styled.div`
|
||||||
@@ -31,6 +27,7 @@ const Spacer = styled.div`
|
|||||||
|
|
||||||
const Title = styled.h1`
|
const Title = styled.h1`
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
text-align: center;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
font-family: 'Source Code Pro', monospace;
|
font-family: 'Source Code Pro', monospace;
|
||||||
@@ -42,6 +39,7 @@ const Title = styled.h1`
|
|||||||
|
|
||||||
const SubTitle = styled.h2`
|
const SubTitle = styled.h2`
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
text-align: center;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: 'Source Code Pro', monospace;
|
font-family: 'Source Code Pro', monospace;
|
||||||
@@ -62,12 +60,11 @@ const Divider = styled.div`
|
|||||||
const Me: React.FC<{}> = () => (
|
const Me: React.FC<{}> = () => (
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
<ImageWrapper>
|
<ImageWrapper>
|
||||||
<Image src="/images/me.jpg">
|
<Image layout="fill" {...image} />
|
||||||
<Spacer />
|
<Spacer />
|
||||||
</Image>
|
|
||||||
</ImageWrapper>
|
</ImageWrapper>
|
||||||
<Title>Morten Olsen</Title>
|
<Title>Morten Olsen</Title>
|
||||||
<SubTitle>“...One part genius, on part crazy”</SubTitle>
|
<SubTitle>“...One part genius, one part crazy”</SubTitle>
|
||||||
<Divider />
|
<Divider />
|
||||||
</Wrapper>
|
</Wrapper>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ interface Props {
|
|||||||
sites: {
|
sites: {
|
||||||
title: string,
|
title: string,
|
||||||
link: string,
|
link: string,
|
||||||
logo: string,
|
logo: any,
|
||||||
}[];
|
}[];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ const Social: React.FC<Props> = ({ sites }) => (
|
|||||||
{sites.map(({ title, link, logo }) => (
|
{sites.map(({ title, link, logo }) => (
|
||||||
<ItemWrapper target="_blank" href={link} key={link}>
|
<ItemWrapper target="_blank" href={link} key={link}>
|
||||||
<InnerWrapper>
|
<InnerWrapper>
|
||||||
<Image src={`/images/logos/${logo}`} />
|
<Image src={logo.src} />
|
||||||
{title}
|
{title}
|
||||||
</InnerWrapper>
|
</InnerWrapper>
|
||||||
</ItemWrapper>
|
</ItemWrapper>
|
||||||
|
|||||||
192
data.json
Normal file
192
data.json
Normal file
@@ -0,0 +1,192 @@
|
|||||||
|
[{
|
||||||
|
"type": "info",
|
||||||
|
"data": {
|
||||||
|
"name": "Morten Olsen",
|
||||||
|
"image": "assets/me.jpg",
|
||||||
|
"info": [{
|
||||||
|
"name": "E-mail",
|
||||||
|
"value": "hello@buy-me.coffee"
|
||||||
|
},{
|
||||||
|
"name": "Location",
|
||||||
|
"value": "Copenhagen, DK"
|
||||||
|
},{
|
||||||
|
"name": "Github",
|
||||||
|
"value": "https://github.com/morten-olsen"
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"type": "text",
|
||||||
|
"data": {
|
||||||
|
"title": "Who am I?",
|
||||||
|
"content": "Hell bend on a conquest to take over the digital world (and the physical, should the chance arise). Am I over ambitious? Perhaps, but with a proven track record in most aspects of things which can process 1s and 0s and a mind which runs at a speed which can battle a well-trained racehorse, I believe I am equipt to undertake this voyage!"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"type": "skills",
|
||||||
|
"data": {
|
||||||
|
"title": "Platforms and Languages",
|
||||||
|
"description": "Platforms and languages which I have worked with. The list is a shortened down version.",
|
||||||
|
"skills": [{
|
||||||
|
"title": "C\\#",
|
||||||
|
"level": 5
|
||||||
|
},{
|
||||||
|
"title": "JavaScript",
|
||||||
|
"level": 5
|
||||||
|
},{
|
||||||
|
"title": "NodeJS",
|
||||||
|
"level": 5
|
||||||
|
},{
|
||||||
|
"title": "React Native",
|
||||||
|
"level": 5
|
||||||
|
},{
|
||||||
|
"title": "HTML",
|
||||||
|
"level": 5
|
||||||
|
},{
|
||||||
|
"title": "CSS",
|
||||||
|
"level": 5
|
||||||
|
},{
|
||||||
|
"title": "TypeScript",
|
||||||
|
"level": 5
|
||||||
|
},{
|
||||||
|
"title": "Docker",
|
||||||
|
"level": 4
|
||||||
|
},{
|
||||||
|
"title": "Linux",
|
||||||
|
"level": 4
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"type": "experiences",
|
||||||
|
"data": {
|
||||||
|
"title": "Experiences",
|
||||||
|
"positions": [{
|
||||||
|
"company": {
|
||||||
|
"name": "Sampension",
|
||||||
|
"webpage": "https://www.sampension.dk"
|
||||||
|
},
|
||||||
|
"title": "Senior Frontend Developer",
|
||||||
|
"startDate": "2018",
|
||||||
|
"endDate": "Present",
|
||||||
|
"description": "Sampension is a danish pension fund and my work has been to design and help to build a frontend architecture that would run natively on iOS and Android as well as on the web on both desktop and mobile devices.\n\nIt was important to ensure that the project felt at home on all platforms and that it was maintainable by a small team of developers.\n\nTo achieve this we used React Native and React Native for Web to create a unified codebase for all platforms, as well as create a component library which would deal with ensuring the best UX on all platforms."
|
||||||
|
}, {
|
||||||
|
"company": {
|
||||||
|
"name": "Trendsales",
|
||||||
|
"webpage": "https://www.trendsales.dk"
|
||||||
|
},
|
||||||
|
"title": "Frontend Technical Lead",
|
||||||
|
"startDate": "2016",
|
||||||
|
"endDate": "2018",
|
||||||
|
"description": "In 2015 Trendsales decided to build an entirely new platform. It became my responsibility to create a modernized frontend architecture. The work began in 2016 with just me on the project and consisted of a proof of concept version containing everything from framework selection, structure, style guides build chain, continuous deployment, and an actual initial working version. The result where the platform which I was given technical ownership over and which I, along with two others, worked on expanding over the next year. The platform is currently powering _m.trendsales.dk_. The project is build using React and state management are done using Redux. In addition to the of the shelve frameworks, we also needed to develop quite a few bespoke frameworks, in order to meet demands. Among others, these were created to solve the following issues:\n\n* Introducing a new navigational paradigm\n* Create a more flexible routing mechanism\n* Be able to serve skeleton page, for page transitions while still being able to create complete server-side pages\n* Ensure project flows between multiple systems such as Github, Jira, Octopus Deploy, AppVeyor and Docker"
|
||||||
|
},{
|
||||||
|
"company": {
|
||||||
|
"name": "Trendsales",
|
||||||
|
"webpage": "https://www.trendsales.dk"
|
||||||
|
},
|
||||||
|
"title": "iOS and Android Developer",
|
||||||
|
"startDate": "2012",
|
||||||
|
"endDate": "2015",
|
||||||
|
"description": "I became responsible for the iOS platform, which was a task that required a new app to be built from the ground up using _Xamarin_[^1]. In addition to that, a new API to support the app along with support for our larger vendors was needed which had to be build using something closely similar to _Microsoft MVC_ so that other people could join the project at a later stage.\n\n he project started in October with the initial version available to our users in late December.\n\nThis project represented my first adventure into mobile development and became an app with more than 15 million screen views and 1.5 million sessions per month.\n\n After that, I joined two other colleagues, who were working on an Android version of the app, to form a join mobile development team.\n\n Throughout the period I also worked on the backend for the web page from time to time.\n\n [^1]: Called MonoTouch at the time"
|
||||||
|
},{
|
||||||
|
"company": {
|
||||||
|
"name": "Trendsales",
|
||||||
|
"webpage": "https://www.trendsales.dk"
|
||||||
|
},
|
||||||
|
"title": "Web Developer",
|
||||||
|
"startDate": "2012",
|
||||||
|
"endDate": "2012",
|
||||||
|
"description": "I got a part-time job at Trendsales, where my primary responsibility was maintaining the API which powered the iOS app. Quickly my tasks became more diverse, and I ended using about 25-50% of my time on the API, while the remaining was spend doing work on the platform in general."
|
||||||
|
},{
|
||||||
|
"company": {
|
||||||
|
"name": "BilZonen",
|
||||||
|
"webpage": "http://www.bilzonen.dk"
|
||||||
|
},
|
||||||
|
"title": "Web Developer",
|
||||||
|
"startDate": "2010",
|
||||||
|
"endDate": "2012",
|
||||||
|
"description": "I work as a part-time web developer on bilzonen.dk. I have worked with both day-to-day maintenance and large scale projects (new search module, integration of new data catalog, mobile site, new-car-catalog and the entire dealer solution). The page is an Umbraco solution, with all .NET (C#) code. I have introduced a new custom build provider-model system, which allows data-providers to move data between data stores, external services, and the site. (search, caching and external car date is running through the provider system). Also, i have set up the development environment, from setting up virtual server hosts to building custom tool for building and unit testing."
|
||||||
|
},{
|
||||||
|
"company": {
|
||||||
|
"name": "Haastrup IT"
|
||||||
|
},
|
||||||
|
"title": "Web Developer",
|
||||||
|
"startDate": "2009",
|
||||||
|
"endDate": "2010",
|
||||||
|
"description": " I have worked as a part time project koordinator and systems developer, sitting with responsibility for a wide variety of projects including projects for \"Københavns Kommune\" (Navision reporting software) and \"Syddanmarks kommune\" (Electronic application processing system). Most projects were made in C#, but also PHP, VB, ActionScript. In addtion to that i maintained the in-house hosting setup. "
|
||||||
|
},{
|
||||||
|
"company": {
|
||||||
|
"name": "Sydbank"
|
||||||
|
},
|
||||||
|
"title": "IT Hotline",
|
||||||
|
"startDate": "2007",
|
||||||
|
"endDate": "2009",
|
||||||
|
"description": " I work as a part-time supporter of customers (private and business) and staff, on Sydbanks different electronic banking systems. Mostly telephonic bug finding and PC setup."
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"type": "skills",
|
||||||
|
"data": {
|
||||||
|
"title": "Frameworks",
|
||||||
|
"description": "This list of frameworks is a curated list of frameworks I have been using recently and therefore are all amongst frameworks which I prefer to work with.",
|
||||||
|
"skills": [{
|
||||||
|
"title": "React",
|
||||||
|
"level": "5"
|
||||||
|
},{
|
||||||
|
"title": "Redux",
|
||||||
|
"level": "5"
|
||||||
|
},{
|
||||||
|
"title": "Webpack",
|
||||||
|
"level": "5"
|
||||||
|
},{
|
||||||
|
"title": "RxJS",
|
||||||
|
"level": "3"
|
||||||
|
},{
|
||||||
|
"title": "RxDB",
|
||||||
|
"level": "5"
|
||||||
|
},{
|
||||||
|
"title": "Styled-Components",
|
||||||
|
"level": "5"
|
||||||
|
},{
|
||||||
|
"title": "GraphQL",
|
||||||
|
"level": "3"
|
||||||
|
},{
|
||||||
|
"title": "Babel",
|
||||||
|
"level": "5"
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"type": "projects",
|
||||||
|
"data": {
|
||||||
|
"title": "Projects of interest",
|
||||||
|
"description": "A list of projects I have worked with or am working on, for which the source is publicly available. Keep in mind that some of these projects are in early stages, and some are merely created for the training, and may not represent the actual way I think production code should be structured",
|
||||||
|
"projects": [{
|
||||||
|
"name": "Clash of Robots",
|
||||||
|
"tagline": "AI vs AI game enginge and IDE",
|
||||||
|
"url": "github.com/clash-of-robots/core",
|
||||||
|
"description": "A game engine for creating AI vs. AI turn-based games, including an IDE (still work in progress). The project is built to be the base for a space drone vs. space drone AI game. Players are given control over a set of drones and have to traverse the solar system, fighting to prosper as selles bots, pirate bots, communication relays or whatever the player decides to do within the confines of the sandbox."
|
||||||
|
}, {
|
||||||
|
"name": "Curriculum Vitae",
|
||||||
|
"tagline": "Automated CV building",
|
||||||
|
"url": "github.com/morten-olsen/curriculum-vitae",
|
||||||
|
"description": " Another small fun project is this resume, as it is created in \\LaTeX, versioned using _Git_ on _Github_ and set to automatically build and create multiple release versions using _Travis CI_ and _Docker "
|
||||||
|
}, {
|
||||||
|
"name": "LifeFlow Mind",
|
||||||
|
"tagline": "Evernote meets \\LaTeX meets Jupyter",
|
||||||
|
"url": "github.com/lifeflow-mind",
|
||||||
|
"description": "I love Evernote simple digital note storages, but as a developer and general nerd, its features often come up short. Which is why I am working on a project named Mind, which attempts to bridge the best aspect of Evernote, with a dynamic view system, so new views (for instance a calendar or a contact view) can be introduced. Also, it can render mathematical formulas using \\LaTeX and execute code snippets, to test and present code directly inside documents. A somewhat working demo can be found at https://morten-olsen.github.io/mind"
|
||||||
|
}, {
|
||||||
|
"name": "Redux App State",
|
||||||
|
"tagline": "Advanced app like navigation on the web",
|
||||||
|
"url": "github.com/trendsales/redux-app-state",
|
||||||
|
"description": " One of the most significant issues I had to overcome when I began building the revamped Trendsales front end was that the design called for an advanced navigation strategy, which did not fit into the webs linear document structure, but rather a branched multi-layer navigation. Therefore I created this project to create a high-level abstraction using a navigation trap to allow for much more advanced navigation patterns"
|
||||||
|
}, {
|
||||||
|
"name": "Clubhouse Protocol",
|
||||||
|
"tagline": "An OpenPGP based crypto group communication with decentralised rule management for both humans and machines",
|
||||||
|
"url": "github.com/clubhouse-protocol",
|
||||||
|
"description": " A cryptographic communication platform where all messages are end-to-end encrypted. It uses a decentralized rule set, so every message is verified and applied by the clients individually "
|
||||||
|
}, {
|
||||||
|
"name": "wolfsquad.co",
|
||||||
|
"tagline": "A fun experiment with encryption",
|
||||||
|
"url": "github.com/morten-olsen/wolfsquad",
|
||||||
|
"description": " This is an old project I did to play around with encryption in JavaScript. The initial boot loader is served as regular JavaScript, but after login, all communication has a level of encryption applied based upon the password, which is never sent to the server, as its encryption abilities offer this feature, without having to transfer sensitive information. It is currently available at https://wolfsquad.co/ with the username _admin_ and the password _password_"
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}]
|
||||||
5
latex/a4.tex
Normal file
5
latex/a4.tex
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
\documentclass[10pt, a4paper]{article}
|
||||||
|
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
|
||||||
|
\def \columncount {3}
|
||||||
|
\def \skillcolumncount {2}
|
||||||
|
\include{header}
|
||||||
5
latex/a5.tex
Normal file
5
latex/a5.tex
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
\documentclass[10pt, a5paper]{article}
|
||||||
|
\usepackage[top=1.5cm, bottom=1cm, left=1cm, right=1cm]{geometry}
|
||||||
|
\def \columncount {2}
|
||||||
|
\def \skillcolumncount {2}
|
||||||
|
\include{header}
|
||||||
5
latex/a6.tex
Normal file
5
latex/a6.tex
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
\documentclass[10pt, a6paper]{article}
|
||||||
|
\usepackage[top=1.5cm, bottom=2cm, left=1cm, right=1cm]{geometry}
|
||||||
|
\def \columncount {1}
|
||||||
|
\def \skillcolumncount {1}
|
||||||
|
\include{header}
|
||||||
73
latex/document.lua
Normal file
73
latex/document.lua
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
require("lualibs.lua")
|
||||||
|
local file = io.open('../data.json')
|
||||||
|
local jsonstring = file:read('*a')
|
||||||
|
file:close()
|
||||||
|
jsondata = utilities.json.tolua(jsonstring)
|
||||||
|
|
||||||
|
local function switch(a, case)
|
||||||
|
local value = a
|
||||||
|
local switchcase = {}
|
||||||
|
|
||||||
|
switchcase["info"] = function()
|
||||||
|
tex.print("\\begin{cvtitle}{" .. value["name"] .. "}{../" .. value["image"] .. "}")
|
||||||
|
for key, value in pairs(value["info"]) do
|
||||||
|
tex.print("\\cvinfo{" .. value["name"] .. "}{" .. value["value"] .. "}")
|
||||||
|
end
|
||||||
|
|
||||||
|
tex.print("\\end{cvtitle}")
|
||||||
|
end
|
||||||
|
|
||||||
|
switchcase["text"] = function()
|
||||||
|
tex.print("\\begin{columns}")
|
||||||
|
tex.print("\\section*{" .. value["title"] .. "}")
|
||||||
|
tex.print("\\begin{markdown}")
|
||||||
|
tex.print(value["content"])
|
||||||
|
tex.print("\\end{markdown}")
|
||||||
|
tex.print("\\end{columns}")
|
||||||
|
end
|
||||||
|
|
||||||
|
switchcase["skills"] = function()
|
||||||
|
tex.print("\\section*{" .. value["title"] .. "}")
|
||||||
|
tex.print(value["description"] .. "\\\\\\\\")
|
||||||
|
tex.print("\\begin{cvskills}")
|
||||||
|
for key, value in pairs(value["skills"]) do
|
||||||
|
tex.print('\\cvskill{' .. value["title"] .. '}{' .. value["level"] .. '}')
|
||||||
|
end
|
||||||
|
tex.print("\\end{cvskills}")
|
||||||
|
end
|
||||||
|
|
||||||
|
switchcase["experiences"] = function()
|
||||||
|
tex.print("\\section*{" .. value["title"] .. "}")
|
||||||
|
for key, value in pairs(value["positions"]) do
|
||||||
|
tex.print("\\begin{cvexp}{" .. value["company"]["name"] .. "}{" .. value["startDate"] .. "}{" .. value["endDate"] .. "}{" .. value["title"] .. "}")
|
||||||
|
tex.print("\\begin{markdown}")
|
||||||
|
tex.print(value["description"])
|
||||||
|
tex.print("\\end{markdown}")
|
||||||
|
tex.print("\\end{cvexp}")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
switchcase["projects"] = function()
|
||||||
|
tex.print("\\section*{" .. value["title"] .. "}")
|
||||||
|
tex.print(value["description"] .. "\\\\\\hrule")
|
||||||
|
for key, value in pairs(value["projects"]) do
|
||||||
|
tex.print("\\begin{cvproj}{" .. value["name"] .. "}{" .. value["url"] .. "}{" .. value["tagline"] .. "}")
|
||||||
|
tex.print("\\begin{markdown}")
|
||||||
|
tex.print(value["description"])
|
||||||
|
tex.print("\\end{markdown}")
|
||||||
|
tex.print("\\end{cvproj}")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if switchcase[case] == nil then
|
||||||
|
tex.print("type " .. case .. "dont exist \\\\\\\\")
|
||||||
|
else
|
||||||
|
switchcase[case]()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function render()
|
||||||
|
for key, value in pairs(jsondata) do
|
||||||
|
switch(value["data"], value["type"])
|
||||||
|
end
|
||||||
|
end
|
||||||
16
latex/header.lua
Normal file
16
latex/header.lua
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
require("lualibs.lua")
|
||||||
|
local file = io.open('../package.json')
|
||||||
|
local jsonstring = file:read('*a')
|
||||||
|
file:close()
|
||||||
|
jsondata = utilities.json.tolua(jsonstring)
|
||||||
|
|
||||||
|
function addHeader()
|
||||||
|
if jsondata["watermark"] ~= nil and jsondata["watermark"] ~= false then
|
||||||
|
tex.print("\\usepackage{draftwatermark}")
|
||||||
|
tex.print("\\SetWatermarkLightness{0.9}")
|
||||||
|
tex.print("\\SetWatermarkScale{6}")
|
||||||
|
if jsondata["watermark"] ~= true then
|
||||||
|
tex.print("\\SetWatermarkText{" .. jsondata["watermark"] .. "}")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
162
latex/header.tex
Normal file
162
latex/header.tex
Normal file
@@ -0,0 +1,162 @@
|
|||||||
|
%\usepackage{showframe}
|
||||||
|
\usepackage{tex4ebook}
|
||||||
|
\usepackage{pagecolor}
|
||||||
|
\usepackage{paracol}
|
||||||
|
\usepackage{kantlipsum}
|
||||||
|
\usepackage{multicol}
|
||||||
|
\usepackage{xifthen}
|
||||||
|
\usepackage{tcolorbox}
|
||||||
|
\usepackage{wrapfig}
|
||||||
|
\usepackage{graphicx}
|
||||||
|
\usepackage{fancyhdr}
|
||||||
|
\usepackage{luacode}
|
||||||
|
%\pagecolor{yellow!5!orange!2!white}
|
||||||
|
\setlength{\columnseprule}{0.1pt}
|
||||||
|
\newcommand{\ifequals}[3]{\ifthenelse{\equal{#1}{#2}}{#3}{}}
|
||||||
|
\newcommand{\case}[2]{#1 #2}
|
||||||
|
\newenvironment{switch}[1]{\renewcommand{\case}{\ifequals{#1}}}{}
|
||||||
|
\usepackage{markdown}
|
||||||
|
\markdownSetup{
|
||||||
|
footnotes = true,
|
||||||
|
renderers = {
|
||||||
|
link = {#1}, % Render a link as the link label.
|
||||||
|
emphasis = {\emph{#1}}, % Render emphasis using `\emph`.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
\newenvironment{columns}{
|
||||||
|
\ifnum\columncount>1
|
||||||
|
\begin{multicols}{\columncount}
|
||||||
|
\fi
|
||||||
|
}{
|
||||||
|
\ifnum\columncount>1
|
||||||
|
\end{multicols}
|
||||||
|
\fi
|
||||||
|
\vspace{0.5cm}
|
||||||
|
\hrule
|
||||||
|
}
|
||||||
|
|
||||||
|
\newenvironment{cvskills}{
|
||||||
|
\noindent\begin{minipage}{\textwidth}
|
||||||
|
\ifnum\skillcolumncount>1
|
||||||
|
\begin{multicols}{\skillcolumncount}
|
||||||
|
\fi
|
||||||
|
}{
|
||||||
|
\ifnum\skillcolumncount>1
|
||||||
|
\end{multicols}
|
||||||
|
\fi
|
||||||
|
\vspace{0.5cm}
|
||||||
|
\hrule
|
||||||
|
\end{minipage}
|
||||||
|
}
|
||||||
|
|
||||||
|
\newenvironment{cvtitle}[2]{
|
||||||
|
\noindent\begin{minipage}{\textwidth}
|
||||||
|
%{\Huge Curriculum Vitae\newline\large #1} \hfill{\large \mbox{#1} \includegraphics[height=3cm]{#2}}\\\\
|
||||||
|
|
||||||
|
\noindent\begin{minipage}{\textwidth - 3.2cm}
|
||||||
|
\Huge Curriculum Vitae\newline\large #1
|
||||||
|
\end{minipage}
|
||||||
|
\noindent\begin{minipage}{3cm}
|
||||||
|
\begin{flushright}
|
||||||
|
\includegraphics[height=3cm]{#2}
|
||||||
|
\end{flushright}
|
||||||
|
\end{minipage}
|
||||||
|
\vspace{0.5cm}
|
||||||
|
\hrule
|
||||||
|
\vspace{0.5cm}
|
||||||
|
\ifnum\skillcolumncount>1
|
||||||
|
\begin{multicols}{\skillcolumncount}
|
||||||
|
\fi
|
||||||
|
}{
|
||||||
|
\ifnum\skillcolumncount>1
|
||||||
|
\end{multicols}
|
||||||
|
\fi
|
||||||
|
\end{minipage}
|
||||||
|
\hfill
|
||||||
|
\begin{minipage}{\textwidth/3-2cm}
|
||||||
|
\end{minipage}
|
||||||
|
\vspace{1cm}
|
||||||
|
\hrule
|
||||||
|
}
|
||||||
|
|
||||||
|
\newenvironment{cvbox}[3]
|
||||||
|
{
|
||||||
|
\noindent
|
||||||
|
%\begin{minipage}{\textwidth}
|
||||||
|
|
||||||
|
%\hrule
|
||||||
|
\begin{columns}
|
||||||
|
\noindent{\Large \textbf{#1}} \hfill {\small #2} \\
|
||||||
|
\textit{#3}
|
||||||
|
\ifnum\columncount>2
|
||||||
|
\vfill\null\columnbreak
|
||||||
|
\else
|
||||||
|
\\\\
|
||||||
|
\fi
|
||||||
|
}
|
||||||
|
{
|
||||||
|
\end{columns}
|
||||||
|
%\end{minipage}
|
||||||
|
\vspace{0.5cm}
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcommand{\cvinfo}[2]{
|
||||||
|
\noindent \textbf{#1}\dotfill#2\\
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcommand{\cvskill}[2]{
|
||||||
|
\textbf{#1}\dotfill
|
||||||
|
\textit{\begin{switch}{#2}
|
||||||
|
\case{1}{Needs refresh}
|
||||||
|
\case{2}{Needs refresh}
|
||||||
|
\case{3}{Comfortable}
|
||||||
|
\case{4}{Prefered}
|
||||||
|
\case{5}{Prefered}
|
||||||
|
\end{switch}}\\
|
||||||
|
}
|
||||||
|
|
||||||
|
\newenvironment{cvexp}[4]
|
||||||
|
{ \begin{cvbox}{#1}{#2 - #3}{#4} }
|
||||||
|
{\end{cvbox}}
|
||||||
|
|
||||||
|
%\newenvironment{cvproj}[3]
|
||||||
|
%{\begin{cvbox}{#1}{#2}{#3}}
|
||||||
|
%{\end{cvbox}}
|
||||||
|
|
||||||
|
\newenvironment{cvproj}[3]
|
||||||
|
{
|
||||||
|
\noindent
|
||||||
|
%\begin{minipage}{\textwidth}
|
||||||
|
|
||||||
|
%\hrule
|
||||||
|
\begin{columns}
|
||||||
|
\noindent{\Large \textbf{#1}} \\ {\small #3} \\
|
||||||
|
{\tiny\textit{https://#2}}
|
||||||
|
\ifnum\columncount>2
|
||||||
|
\vfill\null\columnbreak
|
||||||
|
\else
|
||||||
|
\\\\
|
||||||
|
\fi
|
||||||
|
}
|
||||||
|
{
|
||||||
|
\end{columns}
|
||||||
|
%\end{minipage}
|
||||||
|
\vspace{0.5cm}
|
||||||
|
}
|
||||||
|
|
||||||
|
\pagestyle{fancy}
|
||||||
|
\fancyhf{}
|
||||||
|
\rhead{Morten Olsen \today}
|
||||||
|
\lhead{Curriculum Vitae}
|
||||||
|
\rfoot{Page \thepage}
|
||||||
|
|
||||||
|
\directlua{dofile("header.lua")}
|
||||||
|
\newcommand*{\addHeader}{\directlua{addHeader()}}
|
||||||
|
\addHeader
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
\directlua{dofile("document.lua")}
|
||||||
|
\newcommand*{\render}{\directlua{render()}}
|
||||||
|
\render
|
||||||
|
\end{document}
|
||||||
1942
latex/markdown.lua
Normal file
1942
latex/markdown.lua
Normal file
File diff suppressed because it is too large
Load Diff
550
latex/markdown.sty
Normal file
550
latex/markdown.sty
Normal file
@@ -0,0 +1,550 @@
|
|||||||
|
%%
|
||||||
|
%% This is file `markdown.sty',
|
||||||
|
%% generated with the docstrip utility.
|
||||||
|
%%
|
||||||
|
%% The original source files were:
|
||||||
|
%%
|
||||||
|
%% markdown.dtx (with options: `latex')
|
||||||
|
%%
|
||||||
|
%% Copyright (C) 2017 Vít Novotný
|
||||||
|
%%
|
||||||
|
%% This work may be distributed and/or modified under the
|
||||||
|
%% conditions of the LaTeX Project Public License, either version 1.3
|
||||||
|
%% of this license or (at your option) any later version.
|
||||||
|
%% The latest version of this license is in
|
||||||
|
%%
|
||||||
|
%% http://www.latex-project.org/lppl.txt
|
||||||
|
%%
|
||||||
|
%% and version 1.3 or later is part of all distributions of LaTeX
|
||||||
|
%% version 2005/12/01 or later.
|
||||||
|
%%
|
||||||
|
%% This work has the LPPL maintenance status `maintained'.
|
||||||
|
%% The Current Maintainer of this work is Vít Novotný.
|
||||||
|
%%
|
||||||
|
%% Send bug reports, requests for additions and questions
|
||||||
|
%% either to the GitHub issue tracker at
|
||||||
|
%%
|
||||||
|
%% https://github.com/Witiko/markdown/issues
|
||||||
|
%%
|
||||||
|
%% or to the e-mail address <witiko@mail.muni.cz>.
|
||||||
|
%%
|
||||||
|
%% MODIFICATION ADVICE:
|
||||||
|
%%
|
||||||
|
%% If you want to customize this file, it is best to make a copy of
|
||||||
|
%% the source file(s) from which it was produced. Use a different
|
||||||
|
%% name for your copy(ies) and modify the copy(ies); this will ensure
|
||||||
|
%% that your modifications do not get overwritten when you install a
|
||||||
|
%% new release of the standard system. You should also ensure that
|
||||||
|
%% your modified source file does not generate any modified file with
|
||||||
|
%% the same name as a standard file.
|
||||||
|
%%
|
||||||
|
%% You will also need to produce your own, suitably named, .ins file to
|
||||||
|
%% control the generation of files from your source file; this file
|
||||||
|
%% should contain your own preambles for the files it generates, not
|
||||||
|
%% those in the standard .ins files.
|
||||||
|
%%
|
||||||
|
%% The names of the source files used are shown above.
|
||||||
|
%%
|
||||||
|
\NeedsTeXFormat{LaTeX2e}%
|
||||||
|
\RequirePackage{keyval}
|
||||||
|
\RequirePackage{url}
|
||||||
|
\RequirePackage{graphicx}
|
||||||
|
\RequirePackage{ifthen}
|
||||||
|
\RequirePackage{fancyvrb}
|
||||||
|
\RequirePackage{csvsimple}
|
||||||
|
\newenvironment{markdown}\relax\relax
|
||||||
|
\newenvironment{markdown*}[1]\relax\relax
|
||||||
|
\newcommand\markdownSetup[1]{%
|
||||||
|
\setkeys{markdownOptions}{#1}}%
|
||||||
|
\define@key{markdownOptions}{helperScriptFileName}{%
|
||||||
|
\def\markdownOptionHelperScriptFileName{#1}}%
|
||||||
|
\define@key{markdownOptions}{inputTempFileName}{%
|
||||||
|
\def\markdownOptionInputTempFileName{#1}}%
|
||||||
|
\define@key{markdownOptions}{outputTempFileName}{%
|
||||||
|
\def\markdownOptionOutputTempFileName{#1}}%
|
||||||
|
\define@key{markdownOptions}{errorTempFileName}{%
|
||||||
|
\def\markdownOptionErrorTempFileName{#1}}%
|
||||||
|
\define@key{markdownOptions}{cacheDir}{%
|
||||||
|
\def\markdownOptionCacheDir{#1}}%
|
||||||
|
\define@key{markdownOptions}{outputDir}{%
|
||||||
|
\def\markdownOptionOutputDir{#1}}%
|
||||||
|
\define@key{markdownOptions}{blankBeforeBlockquote}[true]{%
|
||||||
|
\def\markdownOptionBlankBeforeBlockquote{#1}}%
|
||||||
|
\define@key{markdownOptions}{blankBeforeCodeFence}[true]{%
|
||||||
|
\def\markdownOptionBlankBeforeCodeFence{#1}}%
|
||||||
|
\define@key{markdownOptions}{blankBeforeHeading}[true]{%
|
||||||
|
\def\markdownOptionBlankBeforeHeading{#1}}%
|
||||||
|
\define@key{markdownOptions}{breakableBlockquotes}[true]{%
|
||||||
|
\def\markdownOptionBreakableBlockquotes{#1}}%
|
||||||
|
\define@key{markdownOptions}{citations}[true]{%
|
||||||
|
\def\markdownOptionCitations{#1}}%
|
||||||
|
\define@key{markdownOptions}{citationNbsps}[true]{%
|
||||||
|
\def\markdownOptionCitationNbsps{#1}}%
|
||||||
|
\define@key{markdownOptions}{contentBlocks}[true]{%
|
||||||
|
\def\markdownOptionContentBlocks{#1}}%
|
||||||
|
\define@key{markdownOptions}{codeSpans}[true]{%
|
||||||
|
\def\markdownOptionCodeSpans{#1}}%
|
||||||
|
\define@key{markdownOptions}{contentBlocksLanguageMap}{%
|
||||||
|
\def\markdownOptionContentBlocksLanguageMap{#1}}%
|
||||||
|
\define@key{markdownOptions}{definitionLists}[true]{%
|
||||||
|
\def\markdownOptionDefinitionLists{#1}}%
|
||||||
|
\define@key{markdownOptions}{footnotes}[true]{%
|
||||||
|
\def\markdownOptionFootnotes{#1}}%
|
||||||
|
\define@key{markdownOptions}{fencedCode}[true]{%
|
||||||
|
\def\markdownOptionFencedCode{#1}}%
|
||||||
|
\define@key{markdownOptions}{hashEnumerators}[true]{%
|
||||||
|
\def\markdownOptionHashEnumerators{#1}}%
|
||||||
|
\define@key{markdownOptions}{html}[true]{%
|
||||||
|
\def\markdownOptionHtml{#1}}%
|
||||||
|
\define@key{markdownOptions}{hybrid}[true]{%
|
||||||
|
\def\markdownOptionHybrid{#1}}%
|
||||||
|
\define@key{markdownOptions}{inlineFootnotes}[true]{%
|
||||||
|
\def\markdownOptionInlineFootnotes{#1}}%
|
||||||
|
\define@key{markdownOptions}{preserveTabs}[true]{%
|
||||||
|
\def\markdownOptionPreserveTabs{#1}}%
|
||||||
|
\define@key{markdownOptions}{smartEllipses}[true]{%
|
||||||
|
\def\markdownOptionSmartEllipses{#1}}%
|
||||||
|
\define@key{markdownOptions}{startNumber}[true]{%
|
||||||
|
\def\markdownOptionStartNumber{#1}}%
|
||||||
|
\define@key{markdownOptions}{tightLists}[true]{%
|
||||||
|
\def\markdownOptionTightLists{#1}}%
|
||||||
|
\define@key{markdownOptions}{underscores}[true]{%
|
||||||
|
\def\markdownOptionUnderscores{#1}}%
|
||||||
|
\define@key{markdownRenderers}{interblockSeparator}{%
|
||||||
|
\renewcommand\markdownRendererInterblockSeparator{#1}}%
|
||||||
|
\define@key{markdownRenderers}{lineBreak}{%
|
||||||
|
\renewcommand\markdownRendererLineBreak{#1}}%
|
||||||
|
\define@key{markdownRenderers}{ellipsis}{%
|
||||||
|
\renewcommand\markdownRendererEllipsis{#1}}%
|
||||||
|
\define@key{markdownRenderers}{nbsp}{%
|
||||||
|
\renewcommand\markdownRendererNbsp{#1}}%
|
||||||
|
\define@key{markdownRenderers}{leftBrace}{%
|
||||||
|
\renewcommand\markdownRendererLeftBrace{#1}}%
|
||||||
|
\define@key{markdownRenderers}{rightBrace}{%
|
||||||
|
\renewcommand\markdownRendererRightBrace{#1}}%
|
||||||
|
\define@key{markdownRenderers}{dollarSign}{%
|
||||||
|
\renewcommand\markdownRendererDollarSign{#1}}%
|
||||||
|
\define@key{markdownRenderers}{percentSign}{%
|
||||||
|
\renewcommand\markdownRendererPercentSign{#1}}%
|
||||||
|
\define@key{markdownRenderers}{ampersand}{%
|
||||||
|
\renewcommand\markdownRendererAmpersand{#1}}%
|
||||||
|
\define@key{markdownRenderers}{underscore}{%
|
||||||
|
\renewcommand\markdownRendererUnderscore{#1}}%
|
||||||
|
\define@key{markdownRenderers}{hash}{%
|
||||||
|
\renewcommand\markdownRendererHash{#1}}%
|
||||||
|
\define@key{markdownRenderers}{circumflex}{%
|
||||||
|
\renewcommand\markdownRendererCircumflex{#1}}%
|
||||||
|
\define@key{markdownRenderers}{backslash}{%
|
||||||
|
\renewcommand\markdownRendererBackslash{#1}}%
|
||||||
|
\define@key{markdownRenderers}{tilde}{%
|
||||||
|
\renewcommand\markdownRendererTilde{#1}}%
|
||||||
|
\define@key{markdownRenderers}{pipe}{%
|
||||||
|
\renewcommand\markdownRendererPipe{#1}}%
|
||||||
|
\define@key{markdownRenderers}{codeSpan}{%
|
||||||
|
\renewcommand\markdownRendererCodeSpan[1]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{link}{%
|
||||||
|
\renewcommand\markdownRendererLink[4]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{contentBlock}{%
|
||||||
|
\renewcommand\markdownRendererContentBlock[4]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{contentBlockOnlineImage}{%
|
||||||
|
\renewcommand\markdownRendererContentBlockOnlineImage[4]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{contentBlockCode}{%
|
||||||
|
\renewcommand\markdownRendererContentBlockCode[5]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{image}{%
|
||||||
|
\renewcommand\markdownRendererImage[4]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{ulBegin}{%
|
||||||
|
\renewcommand\markdownRendererUlBegin{#1}}%
|
||||||
|
\define@key{markdownRenderers}{ulBeginTight}{%
|
||||||
|
\renewcommand\markdownRendererUlBeginTight{#1}}%
|
||||||
|
\define@key{markdownRenderers}{ulItem}{%
|
||||||
|
\renewcommand\markdownRendererUlItem{#1}}%
|
||||||
|
\define@key{markdownRenderers}{ulItemEnd}{%
|
||||||
|
\renewcommand\markdownRendererUlItemEnd{#1}}%
|
||||||
|
\define@key{markdownRenderers}{ulEnd}{%
|
||||||
|
\renewcommand\markdownRendererUlEnd{#1}}%
|
||||||
|
\define@key{markdownRenderers}{ulEndTight}{%
|
||||||
|
\renewcommand\markdownRendererUlEndTight{#1}}%
|
||||||
|
\define@key{markdownRenderers}{olBegin}{%
|
||||||
|
\renewcommand\markdownRendererOlBegin{#1}}%
|
||||||
|
\define@key{markdownRenderers}{olBeginTight}{%
|
||||||
|
\renewcommand\markdownRendererOlBeginTight{#1}}%
|
||||||
|
\define@key{markdownRenderers}{olItem}{%
|
||||||
|
\renewcommand\markdownRendererOlItem{#1}}%
|
||||||
|
\define@key{markdownRenderers}{olItemWithNumber}{%
|
||||||
|
\renewcommand\markdownRendererOlItemWithNumber[1]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{olItemEnd}{%
|
||||||
|
\renewcommand\markdownRendererOlItemEnd{#1}}%
|
||||||
|
\define@key{markdownRenderers}{olEnd}{%
|
||||||
|
\renewcommand\markdownRendererOlEnd{#1}}%
|
||||||
|
\define@key{markdownRenderers}{olEndTight}{%
|
||||||
|
\renewcommand\markdownRendererOlEndTight{#1}}%
|
||||||
|
\define@key{markdownRenderers}{dlBegin}{%
|
||||||
|
\renewcommand\markdownRendererDlBegin{#1}}%
|
||||||
|
\define@key{markdownRenderers}{dlBeginTight}{%
|
||||||
|
\renewcommand\markdownRendererDlBeginTight{#1}}%
|
||||||
|
\define@key{markdownRenderers}{dlItem}{%
|
||||||
|
\renewcommand\markdownRendererDlItem[1]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{dlItemEnd}{%
|
||||||
|
\renewcommand\markdownRendererDlItemEnd{#1}}%
|
||||||
|
\define@key{markdownRenderers}{dlDefinitionBegin}{%
|
||||||
|
\renewcommand\markdownRendererDlDefinitionBegin{#1}}%
|
||||||
|
\define@key{markdownRenderers}{dlDefinitionEnd}{%
|
||||||
|
\renewcommand\markdownRendererDlDefinitionEnd{#1}}%
|
||||||
|
\define@key{markdownRenderers}{dlEnd}{%
|
||||||
|
\renewcommand\markdownRendererDlEnd{#1}}%
|
||||||
|
\define@key{markdownRenderers}{dlEndTight}{%
|
||||||
|
\renewcommand\markdownRendererDlEndTight{#1}}%
|
||||||
|
\define@key{markdownRenderers}{emphasis}{%
|
||||||
|
\renewcommand\markdownRendererEmphasis[1]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{strongEmphasis}{%
|
||||||
|
\renewcommand\markdownRendererStrongEmphasis[1]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{blockQuoteBegin}{%
|
||||||
|
\renewcommand\markdownRendererBlockQuoteBegin{#1}}%
|
||||||
|
\define@key{markdownRenderers}{blockQuoteEnd}{%
|
||||||
|
\renewcommand\markdownRendererBlockQuoteEnd{#1}}%
|
||||||
|
\define@key{markdownRenderers}{inputVerbatim}{%
|
||||||
|
\renewcommand\markdownRendererInputVerbatim[1]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{inputFencedCode}{%
|
||||||
|
\renewcommand\markdownRendererInputFencedCode[2]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{headingOne}{%
|
||||||
|
\renewcommand\markdownRendererHeadingOne[1]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{headingTwo}{%
|
||||||
|
\renewcommand\markdownRendererHeadingTwo[1]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{headingThree}{%
|
||||||
|
\renewcommand\markdownRendererHeadingThree[1]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{headingFour}{%
|
||||||
|
\renewcommand\markdownRendererHeadingFour[1]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{headingFive}{%
|
||||||
|
\renewcommand\markdownRendererHeadingFive[1]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{headingSix}{%
|
||||||
|
\renewcommand\markdownRendererHeadingSix[1]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{horizontalRule}{%
|
||||||
|
\renewcommand\markdownRendererHorizontalRule{#1}}%
|
||||||
|
\define@key{markdownRenderers}{footnote}{%
|
||||||
|
\renewcommand\markdownRendererFootnote[1]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{cite}{%
|
||||||
|
\renewcommand\markdownRendererCite[1]{#1}}%
|
||||||
|
\define@key{markdownRenderers}{textCite}{%
|
||||||
|
\renewcommand\markdownRendererTextCite[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{interblockSeparator}{%
|
||||||
|
\renewcommand\markdownRendererInterblockSeparatorPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{lineBreak}{%
|
||||||
|
\renewcommand\markdownRendererLineBreakPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{ellipsis}{%
|
||||||
|
\renewcommand\markdownRendererEllipsisPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{nbsp}{%
|
||||||
|
\renewcommand\markdownRendererNbspPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{leftBrace}{%
|
||||||
|
\renewcommand\markdownRendererLeftBracePrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{rightBrace}{%
|
||||||
|
\renewcommand\markdownRendererRightBracePrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{dollarSign}{%
|
||||||
|
\renewcommand\markdownRendererDollarSignPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{percentSign}{%
|
||||||
|
\renewcommand\markdownRendererPercentSignPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{ampersand}{%
|
||||||
|
\renewcommand\markdownRendererAmpersandPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{underscore}{%
|
||||||
|
\renewcommand\markdownRendererUnderscorePrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{hash}{%
|
||||||
|
\renewcommand\markdownRendererHashPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{circumflex}{%
|
||||||
|
\renewcommand\markdownRendererCircumflexPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{backslash}{%
|
||||||
|
\renewcommand\markdownRendererBackslashPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{tilde}{%
|
||||||
|
\renewcommand\markdownRendererTildePrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{pipe}{%
|
||||||
|
\renewcommand\markdownRendererPipePrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{codeSpan}{%
|
||||||
|
\renewcommand\markdownRendererCodeSpanPrototype[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{link}{%
|
||||||
|
\renewcommand\markdownRendererLinkPrototype[4]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{contentBlock}{%
|
||||||
|
\renewcommand\markdownRendererContentBlockPrototype[4]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{contentBlockOnlineImage}{%
|
||||||
|
\renewcommand\markdownRendererContentBlockOnlineImagePrototype[4]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{contentBlockCode}{%
|
||||||
|
\renewcommand\markdownRendererContentBlockCodePrototype[5]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{image}{%
|
||||||
|
\renewcommand\markdownRendererImagePrototype[4]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{ulBegin}{%
|
||||||
|
\renewcommand\markdownRendererUlBeginPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{ulBeginTight}{%
|
||||||
|
\renewcommand\markdownRendererUlBeginTightPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{ulItem}{%
|
||||||
|
\renewcommand\markdownRendererUlItemPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{ulItemEnd}{%
|
||||||
|
\renewcommand\markdownRendererUlItemEndPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{ulEnd}{%
|
||||||
|
\renewcommand\markdownRendererUlEndPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{ulEndTight}{%
|
||||||
|
\renewcommand\markdownRendererUlEndTightPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{olBegin}{%
|
||||||
|
\renewcommand\markdownRendererOlBeginPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{olBeginTight}{%
|
||||||
|
\renewcommand\markdownRendererOlBeginTightPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{olItem}{%
|
||||||
|
\renewcommand\markdownRendererOlItemPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{olItemWithNumber}{%
|
||||||
|
\renewcommand\markdownRendererOlItemWithNumberPrototype[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{olItemEnd}{%
|
||||||
|
\renewcommand\markdownRendererOlItemEndPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{olEnd}{%
|
||||||
|
\renewcommand\markdownRendererOlEndPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{olEndTight}{%
|
||||||
|
\renewcommand\markdownRendererOlEndTightPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{dlBegin}{%
|
||||||
|
\renewcommand\markdownRendererDlBeginPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{dlBeginTight}{%
|
||||||
|
\renewcommand\markdownRendererDlBeginTightPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{dlItem}{%
|
||||||
|
\renewcommand\markdownRendererDlItemPrototype[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{dlItemEnd}{%
|
||||||
|
\renewcommand\markdownRendererDlItemEndPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{dlDefinitionBegin}{%
|
||||||
|
\renewcommand\markdownRendererDlDefinitionBeginPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{dlDefinitionEnd}{%
|
||||||
|
\renewcommand\markdownRendererDlDefinitionEndPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{dlEnd}{%
|
||||||
|
\renewcommand\markdownRendererDlEndPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{dlEndTight}{%
|
||||||
|
\renewcommand\markdownRendererDlEndTightPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{emphasis}{%
|
||||||
|
\renewcommand\markdownRendererEmphasisPrototype[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{strongEmphasis}{%
|
||||||
|
\renewcommand\markdownRendererStrongEmphasisPrototype[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{blockQuoteBegin}{%
|
||||||
|
\renewcommand\markdownRendererBlockQuoteBeginPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{blockQuoteEnd}{%
|
||||||
|
\renewcommand\markdownRendererBlockQuoteEndPrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{inputVerbatim}{%
|
||||||
|
\renewcommand\markdownRendererInputVerbatimPrototype[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{inputFencedCode}{%
|
||||||
|
\renewcommand\markdownRendererInputFencedCodePrototype[2]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{headingOne}{%
|
||||||
|
\renewcommand\markdownRendererHeadingOnePrototype[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{headingTwo}{%
|
||||||
|
\renewcommand\markdownRendererHeadingTwoPrototype[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{headingThree}{%
|
||||||
|
\renewcommand\markdownRendererHeadingThreePrototype[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{headingFour}{%
|
||||||
|
\renewcommand\markdownRendererHeadingFourPrototype[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{headingFive}{%
|
||||||
|
\renewcommand\markdownRendererHeadingFivePrototype[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{headingSix}{%
|
||||||
|
\renewcommand\markdownRendererHeadingSixPrototype[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{horizontalRule}{%
|
||||||
|
\renewcommand\markdownRendererHorizontalRulePrototype{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{footnote}{%
|
||||||
|
\renewcommand\markdownRendererFootnotePrototype[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{cite}{%
|
||||||
|
\renewcommand\markdownRendererCitePrototype[1]{#1}}%
|
||||||
|
\define@key{markdownRendererPrototypes}{textCite}{%
|
||||||
|
\renewcommand\markdownRendererTextCitePrototype[1]{#1}}%
|
||||||
|
\input markdown
|
||||||
|
\def\markdownVersionSpace{ }%
|
||||||
|
\ProvidesPackage{markdown}[\markdownLastModified\markdownVersionSpace v%
|
||||||
|
\markdownVersion\markdownVersionSpace markdown renderer]%
|
||||||
|
\renewcommand\markdownInfo[1]{\PackageInfo{markdown}{#1}}%
|
||||||
|
\renewcommand\markdownWarning[1]{\PackageWarning{markdown}{#1}}%
|
||||||
|
\renewcommand\markdownError[2]{\PackageError{markdown}{#1}{#2.}}%
|
||||||
|
\let\markdownInputPlainTeX\markdownInput
|
||||||
|
\renewcommand\markdownInput[2][]{%
|
||||||
|
\begingroup
|
||||||
|
\markdownSetup{#1}%
|
||||||
|
\markdownInputPlainTeX{#2}%
|
||||||
|
\endgroup}%
|
||||||
|
\renewenvironment{markdown}{%
|
||||||
|
\markdownReadAndConvert@markdown{}}\relax
|
||||||
|
\renewenvironment{markdown*}[1]{%
|
||||||
|
\markdownSetup{#1}%
|
||||||
|
\markdownReadAndConvert@markdown*}\relax
|
||||||
|
\begingroup
|
||||||
|
\catcode`\|=0\catcode`\<=1\catcode`\>=2%
|
||||||
|
\catcode`\\=12|catcode`|{=12|catcode`|}=12%
|
||||||
|
|gdef|markdownReadAndConvert@markdown#1<%
|
||||||
|
|markdownReadAndConvert<\end{markdown#1}>%
|
||||||
|
<|end<markdown#1>>>%
|
||||||
|
|endgroup
|
||||||
|
\DeclareOption*{%
|
||||||
|
\expandafter\markdownSetup\expandafter{\CurrentOption}}%
|
||||||
|
\ProcessOptions\relax
|
||||||
|
\define@key{markdownOptions}{renderers}{%
|
||||||
|
\setkeys{markdownRenderers}{#1}%
|
||||||
|
\def\KV@prefix{KV@markdownOptions@}}%
|
||||||
|
\define@key{markdownOptions}{rendererPrototypes}{%
|
||||||
|
\setkeys{markdownRendererPrototypes}{#1}%
|
||||||
|
\def\KV@prefix{KV@markdownOptions@}}%
|
||||||
|
\ifx\markdownOptionTightLists\undefined
|
||||||
|
\@ifclassloaded{beamer}{}{
|
||||||
|
\RequirePackage{paralist}}
|
||||||
|
\else
|
||||||
|
\ifthenelse{\equal{\markdownOptionTightLists}{false}}{}{
|
||||||
|
\RequirePackage{paralist}}
|
||||||
|
\fi
|
||||||
|
\@ifpackageloaded{paralist}{
|
||||||
|
\markdownSetup{rendererPrototypes={
|
||||||
|
ulBeginTight = {\begin{compactitem}},
|
||||||
|
ulEndTight = {\end{compactitem}},
|
||||||
|
olBeginTight = {\begin{compactenum}},
|
||||||
|
olEndTight = {\end{compactenum}},
|
||||||
|
dlBeginTight = {\begin{compactdesc}},
|
||||||
|
dlEndTight = {\end{compactdesc}}}}
|
||||||
|
}{
|
||||||
|
\markdownSetup{rendererPrototypes={
|
||||||
|
ulBeginTight = {\markdownRendererUlBegin},
|
||||||
|
ulEndTight = {\markdownRendererUlEnd},
|
||||||
|
olBeginTight = {\markdownRendererOlBegin},
|
||||||
|
olEndTight = {\markdownRendererOlEnd},
|
||||||
|
dlBeginTight = {\markdownRendererDlBegin},
|
||||||
|
dlEndTight = {\markdownRendererDlEnd}}}}
|
||||||
|
\markdownSetup{rendererPrototypes={
|
||||||
|
lineBreak = {\\},
|
||||||
|
leftBrace = {\textbraceleft},
|
||||||
|
rightBrace = {\textbraceright},
|
||||||
|
dollarSign = {\textdollar},
|
||||||
|
underscore = {\textunderscore},
|
||||||
|
circumflex = {\textasciicircum},
|
||||||
|
backslash = {\textbackslash},
|
||||||
|
tilde = {\textasciitilde},
|
||||||
|
pipe = {\textbar},
|
||||||
|
codeSpan = {\texttt{#1}},
|
||||||
|
link = {#1\footnote{\ifx\empty#4\empty\else#4:
|
||||||
|
\fi\texttt<\url{#3}\texttt>}},
|
||||||
|
contentBlock = {%
|
||||||
|
\ifthenelse{\equal{#1}{csv}}{%
|
||||||
|
\begin{table}%
|
||||||
|
\begin{center}%
|
||||||
|
\csvautotabular{#3}%
|
||||||
|
\end{center}
|
||||||
|
\ifx\empty#4\empty\else
|
||||||
|
\caption{#4}%
|
||||||
|
\fi
|
||||||
|
\label{tab:#1}%
|
||||||
|
\end{table}}{%
|
||||||
|
\markdownInput{#3}}},
|
||||||
|
image = {%
|
||||||
|
\begin{figure}%
|
||||||
|
\begin{center}%
|
||||||
|
\includegraphics{#3}%
|
||||||
|
\end{center}%
|
||||||
|
\ifx\empty#4\empty\else
|
||||||
|
\caption{#4}%
|
||||||
|
\fi
|
||||||
|
\label{fig:#1}%
|
||||||
|
\end{figure}},
|
||||||
|
ulBegin = {\begin{itemize}},
|
||||||
|
ulItem = {\item},
|
||||||
|
ulEnd = {\end{itemize}},
|
||||||
|
olBegin = {\begin{enumerate}},
|
||||||
|
olItem = {\item},
|
||||||
|
olItemWithNumber = {\item[#1.]},
|
||||||
|
olEnd = {\end{enumerate}},
|
||||||
|
dlBegin = {\begin{description}},
|
||||||
|
dlItem = {\item[#1]},
|
||||||
|
dlEnd = {\end{description}},
|
||||||
|
emphasis = {\emph{#1}},
|
||||||
|
blockQuoteBegin = {\begin{quotation}},
|
||||||
|
blockQuoteEnd = {\end{quotation}},
|
||||||
|
inputVerbatim = {\VerbatimInput{#1}},
|
||||||
|
inputFencedCode = {%
|
||||||
|
\ifx\relax#2\relax
|
||||||
|
\VerbatimInput{#1}%
|
||||||
|
\else
|
||||||
|
\ifx\minted@jobname\undefined
|
||||||
|
\ifx\lst@version\undefined
|
||||||
|
\markdownRendererInputFencedCode{#1}{}%
|
||||||
|
\else
|
||||||
|
\lstinputlisting[language=#2]{#1}%
|
||||||
|
\fi
|
||||||
|
\else
|
||||||
|
\inputminted{#2}{#1}%
|
||||||
|
\fi
|
||||||
|
\fi},
|
||||||
|
horizontalRule = {\noindent\rule[0.5ex]{\linewidth}{1pt}},
|
||||||
|
footnote = {\footnote{#1}}}}
|
||||||
|
\newif\ifmarkdownLATEXStrongEmphasisNested
|
||||||
|
\markdownLATEXStrongEmphasisNestedfalse
|
||||||
|
\markdownSetup{rendererPrototypes={
|
||||||
|
strongEmphasis = {%
|
||||||
|
\ifmarkdownLATEXStrongEmphasisNested
|
||||||
|
\markdownLATEXStrongEmphasisNestedfalse
|
||||||
|
\textmd{#1}%
|
||||||
|
\markdownLATEXStrongEmphasisNestedtrue
|
||||||
|
\else
|
||||||
|
\markdownLATEXStrongEmphasisNestedtrue
|
||||||
|
\textbf{#1}%
|
||||||
|
\markdownLATEXStrongEmphasisNestedfalse
|
||||||
|
\fi}}}
|
||||||
|
\ifx\chapter\undefined
|
||||||
|
\markdownSetup{rendererPrototypes = {
|
||||||
|
headingOne = {\section{#1}},
|
||||||
|
headingTwo = {\subsection{#1}},
|
||||||
|
headingThree = {\subsubsection{#1}},
|
||||||
|
headingFour = {\paragraph{#1}},
|
||||||
|
headingFive = {\subparagraph{#1}}}}
|
||||||
|
\else
|
||||||
|
\markdownSetup{rendererPrototypes = {
|
||||||
|
headingOne = {\chapter{#1}},
|
||||||
|
headingTwo = {\section{#1}},
|
||||||
|
headingThree = {\subsection{#1}},
|
||||||
|
headingFour = {\subsubsection{#1}},
|
||||||
|
headingFive = {\paragraph{#1}},
|
||||||
|
headingSix = {\subparagraph{#1}}}}
|
||||||
|
\fi
|
||||||
|
\newcount\markdownLaTeXCitationsCounter
|
||||||
|
|
||||||
|
\def\markdownLaTeXBasicCitations#1#2#3#4{%
|
||||||
|
\advance\markdownLaTeXCitationsCounter by 1\relax
|
||||||
|
\ifx\relax#2\relax\else#2~\fi\cite[#3]{#4}%
|
||||||
|
\ifnum\markdownLaTeXCitationsCounter>\markdownLaTeXCitationsTotal\relax
|
||||||
|
\expandafter\@gobble
|
||||||
|
\fi\markdownLaTeXBasicCitations}
|
||||||
|
\let\markdownLaTeXBasicTextCitations\markdownLaTeXBasicCitations
|
||||||
|
|
||||||
|
\def\markdownLaTeXBibLaTeXCitations#1#2#3#4#5{%
|
||||||
|
\advance\markdownLaTeXCitationsCounter by 1\relax
|
||||||
|
\ifnum\markdownLaTeXCitationsCounter>\markdownLaTeXCitationsTotal\relax
|
||||||
|
\autocites#1[#3][#4]{#5}%
|
||||||
|
\expandafter\@gobbletwo
|
||||||
|
\fi\markdownLaTeXBibLaTeXCitations{#1[#3][#4]{#5}}}
|
||||||
|
\def\markdownLaTeXBibLaTeXTextCitations#1#2#3#4#5{%
|
||||||
|
\advance\markdownLaTeXCitationsCounter by 1\relax
|
||||||
|
\ifnum\markdownLaTeXCitationsCounter>\markdownLaTeXCitationsTotal\relax
|
||||||
|
\textcites#1[#3][#4]{#5}%
|
||||||
|
\expandafter\@gobbletwo
|
||||||
|
\fi\markdownLaTeXBibLaTeXTextCitations{#1[#3][#4]{#5}}}
|
||||||
|
|
||||||
|
\markdownSetup{rendererPrototypes = {
|
||||||
|
cite = {%
|
||||||
|
\markdownLaTeXCitationsCounter=1%
|
||||||
|
\def\markdownLaTeXCitationsTotal{#1}%
|
||||||
|
\ifx\autocites\undefined
|
||||||
|
\expandafter
|
||||||
|
\markdownLaTeXBasicCitations
|
||||||
|
\else
|
||||||
|
\expandafter\expandafter\expandafter
|
||||||
|
\markdownLaTeXBibLaTeXCitations
|
||||||
|
\expandafter{\expandafter}%
|
||||||
|
\fi},
|
||||||
|
textCite = {%
|
||||||
|
\markdownLaTeXCitationsCounter=1%
|
||||||
|
\def\markdownLaTeXCitationsTotal{#1}%
|
||||||
|
\ifx\textcites\undefined
|
||||||
|
\expandafter
|
||||||
|
\markdownLaTeXBasicTextCitations
|
||||||
|
\else
|
||||||
|
\expandafter\expandafter\expandafter
|
||||||
|
\markdownLaTeXBibLaTeXTextCitations
|
||||||
|
\expandafter{\expandafter}%
|
||||||
|
\fi}}}
|
||||||
|
\newcommand\markdownMakeOther{%
|
||||||
|
\count0=128\relax
|
||||||
|
\loop
|
||||||
|
\catcode\count0=11\relax
|
||||||
|
\advance\count0 by 1\relax
|
||||||
|
\ifnum\count0<256\repeat}%
|
||||||
|
\endinput
|
||||||
|
%%
|
||||||
|
%% End of file `markdown.sty'.
|
||||||
550
latex/markdown.tex
Normal file
550
latex/markdown.tex
Normal file
@@ -0,0 +1,550 @@
|
|||||||
|
%%
|
||||||
|
%% This is file `markdown.tex',
|
||||||
|
%% generated with the docstrip utility.
|
||||||
|
%%
|
||||||
|
%% The original source files were:
|
||||||
|
%%
|
||||||
|
%% markdown.dtx (with options: `tex')
|
||||||
|
%%
|
||||||
|
%% Copyright (C) 2017 Vít Novotný
|
||||||
|
%%
|
||||||
|
%% This work may be distributed and/or modified under the
|
||||||
|
%% conditions of the LaTeX Project Public License, either version 1.3
|
||||||
|
%% of this license or (at your option) any later version.
|
||||||
|
%% The latest version of this license is in
|
||||||
|
%%
|
||||||
|
%% http://www.latex-project.org/lppl.txt
|
||||||
|
%%
|
||||||
|
%% and version 1.3 or later is part of all distributions of LaTeX
|
||||||
|
%% version 2005/12/01 or later.
|
||||||
|
%%
|
||||||
|
%% This work has the LPPL maintenance status `maintained'.
|
||||||
|
%% The Current Maintainer of this work is Vít Novotný.
|
||||||
|
%%
|
||||||
|
%% Send bug reports, requests for additions and questions
|
||||||
|
%% either to the GitHub issue tracker at
|
||||||
|
%%
|
||||||
|
%% https://github.com/Witiko/markdown/issues
|
||||||
|
%%
|
||||||
|
%% or to the e-mail address <witiko@mail.muni.cz>.
|
||||||
|
%%
|
||||||
|
%% MODIFICATION ADVICE:
|
||||||
|
%%
|
||||||
|
%% If you want to customize this file, it is best to make a copy of
|
||||||
|
%% the source file(s) from which it was produced. Use a different
|
||||||
|
%% name for your copy(ies) and modify the copy(ies); this will ensure
|
||||||
|
%% that your modifications do not get overwritten when you install a
|
||||||
|
%% new release of the standard system. You should also ensure that
|
||||||
|
%% your modified source file does not generate any modified file with
|
||||||
|
%% the same name as a standard file.
|
||||||
|
%%
|
||||||
|
%% You will also need to produce your own, suitably named, .ins file to
|
||||||
|
%% control the generation of files from your source file; this file
|
||||||
|
%% should contain your own preambles for the files it generates, not
|
||||||
|
%% those in the standard .ins files.
|
||||||
|
%%
|
||||||
|
%% The names of the source files used are shown above.
|
||||||
|
%%
|
||||||
|
\def\markdownLastModified{2017/09/12}%
|
||||||
|
\def\markdownVersion{2.5.4}%
|
||||||
|
\let\markdownBegin\relax
|
||||||
|
\let\markdownEnd\relax
|
||||||
|
\let\markdownInput\relax
|
||||||
|
\def\markdownOptionHelperScriptFileName{\jobname.markdown.lua}%
|
||||||
|
\def\markdownOptionInputTempFileName{\jobname.markdown.in}%
|
||||||
|
\def\markdownOptionOutputTempFileName{\jobname.markdown.out}%
|
||||||
|
\def\markdownOptionErrorTempFileName{\jobname.markdown.err}%
|
||||||
|
\def\markdownOptionCacheDir{\markdownOptionOutputDir/_markdown_\jobname}%
|
||||||
|
\def\markdownOptionOutputDir{.}%
|
||||||
|
\let\markdownOptionBlankBeforeBlockquote\undefined
|
||||||
|
\let\markdownOptionBlankBeforeCodeFence\undefined
|
||||||
|
\let\markdownOptionBlankBeforeHeading\undefined
|
||||||
|
\let\markdownOptionBreakableBlockquotes\undefined
|
||||||
|
\let\markdownOptionCitations\undefined
|
||||||
|
\let\markdownOptionCitationNbsps\undefined
|
||||||
|
\let\markdownOptionContentBlocks\undefined
|
||||||
|
\let\markdownOptionContentBlocksLanguageMap\undefined
|
||||||
|
\let\markdownOptionDefinitionLists\undefined
|
||||||
|
\let\markdownOptionFootnotes\undefined
|
||||||
|
\let\markdownOptionFencedCode\undefined
|
||||||
|
\let\markdownOptionHashEnumerators\undefined
|
||||||
|
\let\markdownOptionHtml\undefined
|
||||||
|
\let\markdownOptionHybrid\undefined
|
||||||
|
\let\markdownOptionInlineFootnotes\undefined
|
||||||
|
\let\markdownOptionPreserveTabs\undefined
|
||||||
|
\let\markdownOptionSmartEllipses\undefined
|
||||||
|
\let\markdownOptionStartNumber\undefined
|
||||||
|
\let\markdownOptionTightLists\undefined
|
||||||
|
\def\markdownRendererInterblockSeparator{%
|
||||||
|
\markdownRendererInterblockSeparatorPrototype}%
|
||||||
|
\def\markdownRendererLineBreak{%
|
||||||
|
\markdownRendererLineBreakPrototype}%
|
||||||
|
\def\markdownRendererEllipsis{%
|
||||||
|
\markdownRendererEllipsisPrototype}%
|
||||||
|
\def\markdownRendererNbsp{%
|
||||||
|
\markdownRendererNbspPrototype}%
|
||||||
|
\def\markdownRendererLeftBrace{%
|
||||||
|
\markdownRendererLeftBracePrototype}%
|
||||||
|
\def\markdownRendererRightBrace{%
|
||||||
|
\markdownRendererRightBracePrototype}%
|
||||||
|
\def\markdownRendererDollarSign{%
|
||||||
|
\markdownRendererDollarSignPrototype}%
|
||||||
|
\def\markdownRendererPercentSign{%
|
||||||
|
\markdownRendererPercentSignPrototype}%
|
||||||
|
\def\markdownRendererAmpersand{%
|
||||||
|
\markdownRendererAmpersandPrototype}%
|
||||||
|
\def\markdownRendererUnderscore{%
|
||||||
|
\markdownRendererUnderscorePrototype}%
|
||||||
|
\def\markdownRendererHash{%
|
||||||
|
\markdownRendererHashPrototype}%
|
||||||
|
\def\markdownRendererCircumflex{%
|
||||||
|
\markdownRendererCircumflexPrototype}%
|
||||||
|
\def\markdownRendererBackslash{%
|
||||||
|
\markdownRendererBackslashPrototype}%
|
||||||
|
\def\markdownRendererTilde{%
|
||||||
|
\markdownRendererTildePrototype}%
|
||||||
|
\def\markdownRendererPipe{%
|
||||||
|
\markdownRendererPipePrototype}%
|
||||||
|
\def\markdownRendererCodeSpan{%
|
||||||
|
\markdownRendererCodeSpanPrototype}%
|
||||||
|
\def\markdownRendererLink{%
|
||||||
|
\markdownRendererLinkPrototype}%
|
||||||
|
\def\markdownRendererImage{%
|
||||||
|
\markdownRendererImagePrototype}%
|
||||||
|
\def\markdownRendererContentBlock{%
|
||||||
|
\markdownRendererContentBlockPrototype}%
|
||||||
|
\def\markdownRendererContentBlockOnlineImage{%
|
||||||
|
\markdownRendererContentBlockOnlineImagePrototype}%
|
||||||
|
\def\markdownRendererContentBlockCode{%
|
||||||
|
\markdownRendererContentBlockCodePrototype}%
|
||||||
|
\def\markdownRendererUlBegin{%
|
||||||
|
\markdownRendererUlBeginPrototype}%
|
||||||
|
\def\markdownRendererUlBeginTight{%
|
||||||
|
\markdownRendererUlBeginTightPrototype}%
|
||||||
|
\def\markdownRendererUlItem{%
|
||||||
|
\markdownRendererUlItemPrototype}%
|
||||||
|
\def\markdownRendererUlItemEnd{%
|
||||||
|
\markdownRendererUlItemEndPrototype}%
|
||||||
|
\def\markdownRendererUlEnd{%
|
||||||
|
\markdownRendererUlEndPrototype}%
|
||||||
|
\def\markdownRendererUlEndTight{%
|
||||||
|
\markdownRendererUlEndTightPrototype}%
|
||||||
|
\def\markdownRendererOlBegin{%
|
||||||
|
\markdownRendererOlBeginPrototype}%
|
||||||
|
\def\markdownRendererOlBeginTight{%
|
||||||
|
\markdownRendererOlBeginTightPrototype}%
|
||||||
|
\def\markdownRendererOlItem{%
|
||||||
|
\markdownRendererOlItemPrototype}%
|
||||||
|
\def\markdownRendererOlItemEnd{%
|
||||||
|
\markdownRendererOlItemEndPrototype}%
|
||||||
|
\def\markdownRendererOlItemWithNumber{%
|
||||||
|
\markdownRendererOlItemWithNumberPrototype}%
|
||||||
|
\def\markdownRendererOlEnd{%
|
||||||
|
\markdownRendererOlEndPrototype}%
|
||||||
|
\def\markdownRendererOlEndTight{%
|
||||||
|
\markdownRendererOlEndTightPrototype}%
|
||||||
|
\def\markdownRendererDlBegin{%
|
||||||
|
\markdownRendererDlBeginPrototype}%
|
||||||
|
\def\markdownRendererDlBeginTight{%
|
||||||
|
\markdownRendererDlBeginTightPrototype}%
|
||||||
|
\def\markdownRendererDlItem{%
|
||||||
|
\markdownRendererDlItemPrototype}%
|
||||||
|
\def\markdownRendererDlItemEnd{%
|
||||||
|
\markdownRendererDlItemEndPrototype}%
|
||||||
|
\def\markdownRendererDlDefinitionBegin{%
|
||||||
|
\markdownRendererDlDefinitionBeginPrototype}%
|
||||||
|
\def\markdownRendererDlDefinitionEnd{%
|
||||||
|
\markdownRendererDlDefinitionEndPrototype}%
|
||||||
|
\def\markdownRendererDlEnd{%
|
||||||
|
\markdownRendererDlEndPrototype}%
|
||||||
|
\def\markdownRendererDlEndTight{%
|
||||||
|
\markdownRendererDlEndTightPrototype}%
|
||||||
|
\def\markdownRendererEmphasis{%
|
||||||
|
\markdownRendererEmphasisPrototype}%
|
||||||
|
\def\markdownRendererStrongEmphasis{%
|
||||||
|
\markdownRendererStrongEmphasisPrototype}%
|
||||||
|
\def\markdownRendererBlockQuoteBegin{%
|
||||||
|
\markdownRendererBlockQuoteBeginPrototype}%
|
||||||
|
\def\markdownRendererBlockQuoteEnd{%
|
||||||
|
\markdownRendererBlockQuoteEndPrototype}%
|
||||||
|
\def\markdownRendererInputVerbatim{%
|
||||||
|
\markdownRendererInputVerbatimPrototype}%
|
||||||
|
\def\markdownRendererInputFencedCode{%
|
||||||
|
\markdownRendererInputFencedCodePrototype}%
|
||||||
|
\def\markdownRendererHeadingOne{%
|
||||||
|
\markdownRendererHeadingOnePrototype}%
|
||||||
|
\def\markdownRendererHeadingTwo{%
|
||||||
|
\markdownRendererHeadingTwoPrototype}%
|
||||||
|
\def\markdownRendererHeadingThree{%
|
||||||
|
\markdownRendererHeadingThreePrototype}%
|
||||||
|
\def\markdownRendererHeadingFour{%
|
||||||
|
\markdownRendererHeadingFourPrototype}%
|
||||||
|
\def\markdownRendererHeadingFive{%
|
||||||
|
\markdownRendererHeadingFivePrototype}%
|
||||||
|
\def\markdownRendererHeadingSix{%
|
||||||
|
\markdownRendererHeadingSixPrototype}%
|
||||||
|
\def\markdownRendererHorizontalRule{%
|
||||||
|
\markdownRendererHorizontalRulePrototype}%
|
||||||
|
\def\markdownRendererFootnote{%
|
||||||
|
\markdownRendererFootnotePrototype}%
|
||||||
|
\def\markdownRendererCite{%
|
||||||
|
\markdownRendererCitePrototype}%
|
||||||
|
\def\markdownRendererTextCite{%
|
||||||
|
\markdownRendererTextCitePrototype}%
|
||||||
|
\def\markdownRendererInterblockSeparatorPrototype{}%
|
||||||
|
\def\markdownRendererLineBreakPrototype{}%
|
||||||
|
\def\markdownRendererEllipsisPrototype{}%
|
||||||
|
\def\markdownRendererNbspPrototype{}%
|
||||||
|
\def\markdownRendererLeftBracePrototype{}%
|
||||||
|
\def\markdownRendererRightBracePrototype{}%
|
||||||
|
\def\markdownRendererDollarSignPrototype{}%
|
||||||
|
\def\markdownRendererPercentSignPrototype{}%
|
||||||
|
\def\markdownRendererAmpersandPrototype{}%
|
||||||
|
\def\markdownRendererUnderscorePrototype{}%
|
||||||
|
\def\markdownRendererHashPrototype{}%
|
||||||
|
\def\markdownRendererCircumflexPrototype{}%
|
||||||
|
\def\markdownRendererBackslashPrototype{}%
|
||||||
|
\def\markdownRendererTildePrototype{}%
|
||||||
|
\def\markdownRendererPipePrototype{}%
|
||||||
|
\def\markdownRendererCodeSpanPrototype#1{}%
|
||||||
|
\def\markdownRendererLinkPrototype#1#2#3#4{}%
|
||||||
|
\def\markdownRendererImagePrototype#1#2#3#4{}%
|
||||||
|
\def\markdownRendererContentBlockPrototype#1#2#3#4{}%
|
||||||
|
\def\markdownRendererContentBlockOnlineImagePrototype#1#2#3#4{}%
|
||||||
|
\def\markdownRendererContentBlockCodePrototype#1#2#3#4{}%
|
||||||
|
\def\markdownRendererUlBeginPrototype{}%
|
||||||
|
\def\markdownRendererUlBeginTightPrototype{}%
|
||||||
|
\def\markdownRendererUlItemPrototype{}%
|
||||||
|
\def\markdownRendererUlItemEndPrototype{}%
|
||||||
|
\def\markdownRendererUlEndPrototype{}%
|
||||||
|
\def\markdownRendererUlEndTightPrototype{}%
|
||||||
|
\def\markdownRendererOlBeginPrototype{}%
|
||||||
|
\def\markdownRendererOlBeginTightPrototype{}%
|
||||||
|
\def\markdownRendererOlItemPrototype{}%
|
||||||
|
\def\markdownRendererOlItemWithNumberPrototype#1{}%
|
||||||
|
\def\markdownRendererOlItemEndPrototype{}%
|
||||||
|
\def\markdownRendererOlEndPrototype{}%
|
||||||
|
\def\markdownRendererOlEndTightPrototype{}%
|
||||||
|
\def\markdownRendererDlBeginPrototype{}%
|
||||||
|
\def\markdownRendererDlBeginTightPrototype{}%
|
||||||
|
\def\markdownRendererDlItemPrototype#1{}%
|
||||||
|
\def\markdownRendererDlItemEndPrototype{}%
|
||||||
|
\def\markdownRendererDlDefinitionBeginPrototype{}%
|
||||||
|
\def\markdownRendererDlDefinitionEndPrototype{}%
|
||||||
|
\def\markdownRendererDlEndPrototype{}%
|
||||||
|
\def\markdownRendererDlEndTightPrototype{}%
|
||||||
|
\def\markdownRendererEmphasisPrototype#1{}%
|
||||||
|
\def\markdownRendererStrongEmphasisPrototype#1{}%
|
||||||
|
\def\markdownRendererBlockQuoteBeginPrototype{}%
|
||||||
|
\def\markdownRendererBlockQuoteEndPrototype{}%
|
||||||
|
\def\markdownRendererInputVerbatimPrototype#1{}%
|
||||||
|
\def\markdownRendererInputFencedCodePrototype#1#2{}%
|
||||||
|
\def\markdownRendererHeadingOnePrototype#1{}%
|
||||||
|
\def\markdownRendererHeadingTwoPrototype#1{}%
|
||||||
|
\def\markdownRendererHeadingThreePrototype#1{}%
|
||||||
|
\def\markdownRendererHeadingFourPrototype#1{}%
|
||||||
|
\def\markdownRendererHeadingFivePrototype#1{}%
|
||||||
|
\def\markdownRendererHeadingSixPrototype#1{}%
|
||||||
|
\def\markdownRendererHorizontalRulePrototype{}%
|
||||||
|
\def\markdownRendererFootnotePrototype#1{}%
|
||||||
|
\def\markdownRendererCitePrototype#1{}%
|
||||||
|
\def\markdownRendererTextCitePrototype#1{}%
|
||||||
|
\def\markdownInfo#1{}%
|
||||||
|
\def\markdownWarning#1{}%
|
||||||
|
\def\markdownError#1#2{}%
|
||||||
|
\let\markdownMakeOther\relax
|
||||||
|
\let\markdownReadAndConvert\relax
|
||||||
|
\begingroup
|
||||||
|
\catcode`\|=0\catcode`\\=12%
|
||||||
|
|gdef|markdownBegin{%
|
||||||
|
|markdownReadAndConvert{\markdownEnd}%
|
||||||
|
{|markdownEnd}}%
|
||||||
|
|endgroup
|
||||||
|
\ifx\markdownMode\undefined
|
||||||
|
\ifx\directlua\undefined
|
||||||
|
\def\markdownMode{0}%
|
||||||
|
\else
|
||||||
|
\def\markdownMode{2}%
|
||||||
|
\fi
|
||||||
|
\fi
|
||||||
|
\def\markdownLuaRegisterIBCallback#1{\relax}%
|
||||||
|
\def\markdownLuaUnregisterIBCallback#1{\relax}%
|
||||||
|
\def\markdownInfo#1{%
|
||||||
|
\immediate\write-1{(l.\the\inputlineno) markdown.tex info: #1.}}%
|
||||||
|
\def\markdownWarning#1{%
|
||||||
|
\immediate\write16{(l.\the\inputlineno) markdown.tex warning: #1}}%
|
||||||
|
\def\markdownError#1#2{%
|
||||||
|
\errhelp{#2.}%
|
||||||
|
\errmessage{(l.\the\inputlineno) markdown.tex error: #1}}%
|
||||||
|
\def\markdownRendererInterblockSeparatorPrototype{\par}%
|
||||||
|
\def\markdownRendererLineBreakPrototype{\hfil\break}%
|
||||||
|
\let\markdownRendererEllipsisPrototype\dots
|
||||||
|
\def\markdownRendererNbspPrototype{~}%
|
||||||
|
\def\markdownRendererLeftBracePrototype{\char`{}%
|
||||||
|
\def\markdownRendererRightBracePrototype{\char`}}%
|
||||||
|
\def\markdownRendererDollarSignPrototype{\char`$}%
|
||||||
|
\def\markdownRendererPercentSignPrototype{\char`\%}%
|
||||||
|
\def\markdownRendererAmpersandPrototype{\char`&}%
|
||||||
|
\def\markdownRendererUnderscorePrototype{\char`_}%
|
||||||
|
\def\markdownRendererHashPrototype{\char`\#}%
|
||||||
|
\def\markdownRendererCircumflexPrototype{\char`^}%
|
||||||
|
\def\markdownRendererBackslashPrototype{\char`\\}%
|
||||||
|
\def\markdownRendererTildePrototype{\char`~}%
|
||||||
|
\def\markdownRendererPipePrototype{|}%
|
||||||
|
\def\markdownRendererCodeSpanPrototype#1{{\tt#1}}%
|
||||||
|
\def\markdownRendererLinkPrototype#1#2#3#4{#2}%
|
||||||
|
\def\markdownRendererContentBlockPrototype#1#2#3#4{%
|
||||||
|
\markdownInput{#3}}%
|
||||||
|
\def\markdownRendererContentBlockOnlineImagePrototype{%
|
||||||
|
\markdownRendererImage}%
|
||||||
|
\def\markdownRendererContentBlockCodePrototype#1#2#3#4#5{%
|
||||||
|
\markdownRendererInputFencedCode{#3}{#2}}%
|
||||||
|
\def\markdownRendererImagePrototype#1#2#3#4{#2}%
|
||||||
|
\def\markdownRendererUlBeginPrototype{}%
|
||||||
|
\def\markdownRendererUlBeginTightPrototype{}%
|
||||||
|
\def\markdownRendererUlItemPrototype{}%
|
||||||
|
\def\markdownRendererUlItemEndPrototype{}%
|
||||||
|
\def\markdownRendererUlEndPrototype{}%
|
||||||
|
\def\markdownRendererUlEndTightPrototype{}%
|
||||||
|
\def\markdownRendererOlBeginPrototype{}%
|
||||||
|
\def\markdownRendererOlBeginTightPrototype{}%
|
||||||
|
\def\markdownRendererOlItemPrototype{}%
|
||||||
|
\def\markdownRendererOlItemWithNumberPrototype#1{}%
|
||||||
|
\def\markdownRendererOlItemEndPrototype{}%
|
||||||
|
\def\markdownRendererOlEndPrototype{}%
|
||||||
|
\def\markdownRendererOlEndTightPrototype{}%
|
||||||
|
\def\markdownRendererDlBeginPrototype{}%
|
||||||
|
\def\markdownRendererDlBeginTightPrototype{}%
|
||||||
|
\def\markdownRendererDlItemPrototype#1{#1}%
|
||||||
|
\def\markdownRendererDlItemEndPrototype{}%
|
||||||
|
\def\markdownRendererDlDefinitionBeginPrototype{}%
|
||||||
|
\def\markdownRendererDlDefinitionEndPrototype{\par}%
|
||||||
|
\def\markdownRendererDlEndPrototype{}%
|
||||||
|
\def\markdownRendererDlEndTightPrototype{}%
|
||||||
|
\def\markdownRendererEmphasisPrototype#1{{\it#1}}%
|
||||||
|
\def\markdownRendererStrongEmphasisPrototype#1{{\bf#1}}%
|
||||||
|
\def\markdownRendererBlockQuoteBeginPrototype{\par\begingroup\it}%
|
||||||
|
\def\markdownRendererBlockQuoteEndPrototype{\endgroup\par}%
|
||||||
|
\def\markdownRendererInputVerbatimPrototype#1{%
|
||||||
|
\par{\tt\input"#1"\relax}\par}%
|
||||||
|
\def\markdownRendererInputFencedCodePrototype#1#2{%
|
||||||
|
\markdownRendererInputVerbatimPrototype{#1}}%
|
||||||
|
\def\markdownRendererHeadingOnePrototype#1{#1}%
|
||||||
|
\def\markdownRendererHeadingTwoPrototype#1{#1}%
|
||||||
|
\def\markdownRendererHeadingThreePrototype#1{#1}%
|
||||||
|
\def\markdownRendererHeadingFourPrototype#1{#1}%
|
||||||
|
\def\markdownRendererHeadingFivePrototype#1{#1}%
|
||||||
|
\def\markdownRendererHeadingSixPrototype#1{#1}%
|
||||||
|
\def\markdownRendererHorizontalRulePrototype{}%
|
||||||
|
\def\markdownRendererFootnotePrototype#1{#1}%
|
||||||
|
\def\markdownRendererCitePrototype#1{}%
|
||||||
|
\def\markdownRendererTextCitePrototype#1{}%
|
||||||
|
\def\markdownLuaOptions{{%
|
||||||
|
\ifx\markdownOptionBlankBeforeBlockquote\undefined\else
|
||||||
|
blankBeforeBlockquote = \markdownOptionBlankBeforeBlockquote,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionBlankBeforeCodeFence\undefined\else
|
||||||
|
blankBeforeCodeFence = \markdownOptionBlankBeforeCodeFence,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionBlankBeforeHeading\undefined\else
|
||||||
|
blankBeforeHeading = \markdownOptionBlankBeforeHeading,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionBreakableBlockquotes\undefined\else
|
||||||
|
breakableBlockquotes = \markdownOptionBreakableBlockquotes,
|
||||||
|
\fi
|
||||||
|
cacheDir = "\markdownOptionCacheDir",
|
||||||
|
\ifx\markdownOptionCitations\undefined\else
|
||||||
|
citations = \markdownOptionCitations,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionCitationNbsps\undefined\else
|
||||||
|
citationNbsps = \markdownOptionCitationNbsps,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionCodeSpans\undefined\else
|
||||||
|
codeSpans = \markdownOptionCodeSpans,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionContentBlocks\undefined\else
|
||||||
|
contentBlocks = \markdownOptionContentBlocks,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionContentBlocksLanguageMap\undefined\else
|
||||||
|
contentBlocksLanguageMap =
|
||||||
|
"\markdownOptionContentBlocksLanguageMap",
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionDefinitionLists\undefined\else
|
||||||
|
definitionLists = \markdownOptionDefinitionLists,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionFootnotes\undefined\else
|
||||||
|
footnotes = \markdownOptionFootnotes,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionFencedCode\undefined\else
|
||||||
|
fencedCode = \markdownOptionFencedCode,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionHashEnumerators\undefined\else
|
||||||
|
hashEnumerators = \markdownOptionHashEnumerators,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionHtml\undefined\else
|
||||||
|
html = \markdownOptionHtml,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionHybrid\undefined\else
|
||||||
|
hybrid = \markdownOptionHybrid,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionInlineFootnotes\undefined\else
|
||||||
|
inlineFootnotes = \markdownOptionInlineFootnotes,
|
||||||
|
\fi
|
||||||
|
outputDir = "\markdownOptionOutputDir",
|
||||||
|
\ifx\markdownOptionPreserveTabs\undefined\else
|
||||||
|
preserveTabs = \markdownOptionPreserveTabs,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionSmartEllipses\undefined\else
|
||||||
|
smartEllipses = \markdownOptionSmartEllipses,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionStartNumber\undefined\else
|
||||||
|
startNumber = \markdownOptionStartNumber,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionTightLists\undefined\else
|
||||||
|
tightLists = \markdownOptionTightLists,
|
||||||
|
\fi
|
||||||
|
\ifx\markdownOptionUnderscores\undefined\else
|
||||||
|
underscores = \markdownOptionUnderscores,
|
||||||
|
\fi}
|
||||||
|
}%
|
||||||
|
\def\markdownPrepare{%
|
||||||
|
local lfs = require("lfs")
|
||||||
|
local cacheDir = "\markdownOptionCacheDir"
|
||||||
|
if lfs.isdir(cacheDir) == true then else
|
||||||
|
assert(lfs.mkdir(cacheDir))
|
||||||
|
end
|
||||||
|
local md = require("markdown")
|
||||||
|
local convert = md.new(\markdownLuaOptions)
|
||||||
|
}%
|
||||||
|
\csname newread\endcsname\markdownInputFileStream
|
||||||
|
\csname newwrite\endcsname\markdownOutputFileStream
|
||||||
|
\begingroup
|
||||||
|
\catcode`\^^I=12%
|
||||||
|
\gdef\markdownReadAndConvertTab{^^I}%
|
||||||
|
\endgroup
|
||||||
|
\begingroup
|
||||||
|
\catcode`\^^M=13%
|
||||||
|
\catcode`\^^I=13%
|
||||||
|
\catcode`|=0%
|
||||||
|
\catcode`\\=12%
|
||||||
|
|gdef|markdownReadAndConvert#1#2{%
|
||||||
|
|begingroup%
|
||||||
|
|immediate|openout|markdownOutputFileStream%
|
||||||
|
|markdownOptionInputTempFileName%
|
||||||
|
|markdownInfo{Buffering markdown input into the temporary %
|
||||||
|
input file "|markdownOptionInputTempFileName" and scanning %
|
||||||
|
for the closing token sequence "#1"}%
|
||||||
|
|def|do##1{|catcode`##1=12}|dospecials%
|
||||||
|
|catcode`| =12%
|
||||||
|
|markdownMakeOther%
|
||||||
|
|def|markdownReadAndConvertProcessLine##1#1##2#1##3|relax{%
|
||||||
|
|ifx|relax##3|relax%
|
||||||
|
|immediate|write|markdownOutputFileStream{##1}%
|
||||||
|
|else%
|
||||||
|
|def^^M{%
|
||||||
|
|markdownInfo{The ending token sequence was found}%
|
||||||
|
|immediate|closeout|markdownOutputFileStream%
|
||||||
|
|endgroup%
|
||||||
|
|markdownInput|markdownOptionInputTempFileName%
|
||||||
|
#2}%
|
||||||
|
|fi%
|
||||||
|
^^M}%
|
||||||
|
|catcode`|^^I=13%
|
||||||
|
|def^^I{|markdownReadAndConvertTab}%
|
||||||
|
|catcode`|^^M=13%
|
||||||
|
|def^^M##1^^M{%
|
||||||
|
|def^^M####1^^M{%
|
||||||
|
|markdownReadAndConvertProcessLine####1#1#1|relax}%
|
||||||
|
^^M}%
|
||||||
|
^^M}%
|
||||||
|
|endgroup
|
||||||
|
\ifnum\markdownMode<2\relax
|
||||||
|
\ifnum\markdownMode=0\relax
|
||||||
|
\markdownInfo{Using mode 0: Shell escape via write18}%
|
||||||
|
\else
|
||||||
|
\markdownInfo{Using mode 1: Shell escape via os.execute}%
|
||||||
|
\fi
|
||||||
|
\ifx\pdfshellescape\undefined
|
||||||
|
\ifx\shellescape\undefined
|
||||||
|
\ifnum\markdownMode=0\relax
|
||||||
|
\def\markdownExecuteShellEscape{1}%
|
||||||
|
\else
|
||||||
|
\def\markdownExecuteShellEscape{%
|
||||||
|
\directlua{tex.sprint(status.shell_escape or "1")}}%
|
||||||
|
\fi
|
||||||
|
\else
|
||||||
|
\let\markdownExecuteShellEscape\shellescape
|
||||||
|
\fi
|
||||||
|
\else
|
||||||
|
\let\markdownExecuteShellEscape\pdfshellescape
|
||||||
|
\fi
|
||||||
|
\ifnum\markdownMode=0\relax
|
||||||
|
\def\markdownExecuteDirect#1{\immediate\write18{#1}}%
|
||||||
|
\else
|
||||||
|
\def\markdownExecuteDirect#1{%
|
||||||
|
\directlua{os.execute("\luaescapestring{#1}")}}%
|
||||||
|
\fi
|
||||||
|
\def\markdownExecute#1{%
|
||||||
|
\ifnum\markdownExecuteShellEscape=1\relax
|
||||||
|
\markdownExecuteDirect{#1}%
|
||||||
|
\else
|
||||||
|
\markdownError{I can not access the shell}{Either run the TeX
|
||||||
|
compiler with the --shell-escape or the --enable-write18 flag,
|
||||||
|
or set shell_escape=t in the texmf.cnf file}%
|
||||||
|
\fi}%
|
||||||
|
\begingroup
|
||||||
|
\catcode`|=0%
|
||||||
|
\catcode`\\=12%
|
||||||
|
|gdef|markdownLuaExecute#1{%
|
||||||
|
|immediate|openout|markdownOutputFileStream=%
|
||||||
|
|markdownOptionHelperScriptFileName
|
||||||
|
|markdownInfo{Writing a helper Lua script to the file
|
||||||
|
"|markdownOptionHelperScriptFileName"}%
|
||||||
|
|immediate|write|markdownOutputFileStream{%
|
||||||
|
local ran_ok, error = pcall(function()
|
||||||
|
local kpse = require('kpse')
|
||||||
|
kpse.set_program_name('luatex')
|
||||||
|
#1
|
||||||
|
end)
|
||||||
|
if not ran_ok then
|
||||||
|
local file = io.open("%
|
||||||
|
|markdownOptionOutputDir
|
||||||
|
/|markdownOptionErrorTempFileName", "w")
|
||||||
|
if file then
|
||||||
|
file:write(error .. "\n")
|
||||||
|
file:close()
|
||||||
|
end
|
||||||
|
print('\\markdownError{An error was encountered while executing
|
||||||
|
Lua code}{For further clues, examine the file
|
||||||
|
"|markdownOptionOutputDir
|
||||||
|
/|markdownOptionErrorTempFileName"}')
|
||||||
|
end}%
|
||||||
|
|immediate|closeout|markdownOutputFileStream
|
||||||
|
|markdownInfo{Executing a helper Lua script from the file
|
||||||
|
"|markdownOptionHelperScriptFileName" and storing the result in the
|
||||||
|
file "|markdownOptionOutputTempFileName"}%
|
||||||
|
|markdownExecute{texlua "|markdownOptionOutputDir
|
||||||
|
/|markdownOptionHelperScriptFileName" > %
|
||||||
|
"|markdownOptionOutputDir
|
||||||
|
/|markdownOptionOutputTempFileName"}%
|
||||||
|
|input|markdownOptionOutputTempFileName|relax}%
|
||||||
|
|endgroup
|
||||||
|
\else
|
||||||
|
\markdownInfo{Using mode 2: Direct Lua access}%
|
||||||
|
\def\markdownLuaExecute#1{\directlua{local print = tex.print #1}}%
|
||||||
|
\fi
|
||||||
|
\begingroup
|
||||||
|
\catcode`|=0%
|
||||||
|
\catcode`\\=12%
|
||||||
|
|gdef|markdownInput#1{%
|
||||||
|
|markdownInfo{Including markdown document "#1"}%
|
||||||
|
|openin|markdownInputFileStream#1
|
||||||
|
|closein|markdownInputFileStream
|
||||||
|
|markdownLuaExecute{%
|
||||||
|
|markdownPrepare
|
||||||
|
local input = assert(io.open("#1","r")):read("*a")
|
||||||
|
print(convert(input:gsub("\r\n?", "\n")))}}%
|
||||||
|
|endgroup
|
||||||
|
\endinput
|
||||||
|
%%
|
||||||
|
%% End of file `markdown.tex'.
|
||||||
161
latex/t-markdown.tex
Normal file
161
latex/t-markdown.tex
Normal file
@@ -0,0 +1,161 @@
|
|||||||
|
%%
|
||||||
|
%% This is file `t-markdown.tex',
|
||||||
|
%% generated with the docstrip utility.
|
||||||
|
%%
|
||||||
|
%% The original source files were:
|
||||||
|
%%
|
||||||
|
%% markdown.dtx (with options: `context')
|
||||||
|
%%
|
||||||
|
%% Copyright (C) 2017 Vít Novotný
|
||||||
|
%%
|
||||||
|
%% This work may be distributed and/or modified under the
|
||||||
|
%% conditions of the LaTeX Project Public License, either version 1.3
|
||||||
|
%% of this license or (at your option) any later version.
|
||||||
|
%% The latest version of this license is in
|
||||||
|
%%
|
||||||
|
%% http://www.latex-project.org/lppl.txt
|
||||||
|
%%
|
||||||
|
%% and version 1.3 or later is part of all distributions of LaTeX
|
||||||
|
%% version 2005/12/01 or later.
|
||||||
|
%%
|
||||||
|
%% This work has the LPPL maintenance status `maintained'.
|
||||||
|
%% The Current Maintainer of this work is Vít Novotný.
|
||||||
|
%%
|
||||||
|
%% Send bug reports, requests for additions and questions
|
||||||
|
%% either to the GitHub issue tracker at
|
||||||
|
%%
|
||||||
|
%% https://github.com/Witiko/markdown/issues
|
||||||
|
%%
|
||||||
|
%% or to the e-mail address <witiko@mail.muni.cz>.
|
||||||
|
%%
|
||||||
|
%% MODIFICATION ADVICE:
|
||||||
|
%%
|
||||||
|
%% If you want to customize this file, it is best to make a copy of
|
||||||
|
%% the source file(s) from which it was produced. Use a different
|
||||||
|
%% name for your copy(ies) and modify the copy(ies); this will ensure
|
||||||
|
%% that your modifications do not get overwritten when you install a
|
||||||
|
%% new release of the standard system. You should also ensure that
|
||||||
|
%% your modified source file does not generate any modified file with
|
||||||
|
%% the same name as a standard file.
|
||||||
|
%%
|
||||||
|
%% You will also need to produce your own, suitably named, .ins file to
|
||||||
|
%% control the generation of files from your source file; this file
|
||||||
|
%% should contain your own preambles for the files it generates, not
|
||||||
|
%% those in the standard .ins files.
|
||||||
|
%%
|
||||||
|
%% The names of the source files used are shown above.
|
||||||
|
%%
|
||||||
|
\writestatus{loading}{ConTeXt User Module / markdown}%
|
||||||
|
\unprotect
|
||||||
|
\let\startmarkdown\relax
|
||||||
|
\let\stopmarkdown\relax
|
||||||
|
\def\dospecials{\do\ \do\\\do\{\do\}\do\$\do\&%
|
||||||
|
\do\#\do\^\do\_\do\%\do\~}%
|
||||||
|
\input markdown
|
||||||
|
\def\markdownMakeOther{%
|
||||||
|
\count0=128\relax
|
||||||
|
\loop
|
||||||
|
\catcode\count0=11\relax
|
||||||
|
\advance\count0 by 1\relax
|
||||||
|
\ifnum\count0<256\repeat
|
||||||
|
\catcode`|=12}%
|
||||||
|
\def\markdownInfo#1{\writestatus{markdown}{#1.}}%
|
||||||
|
\def\markdownWarning#1{\writestatus{markdown\space warn}{#1.}}%
|
||||||
|
\begingroup
|
||||||
|
\catcode`\|=0%
|
||||||
|
\catcode`\\=12%
|
||||||
|
|gdef|startmarkdown{%
|
||||||
|
|markdownReadAndConvert{\stopmarkdown}%
|
||||||
|
{|stopmarkdown}}%
|
||||||
|
|endgroup
|
||||||
|
\def\markdownRendererLineBreakPrototype{\blank}%
|
||||||
|
\def\markdownRendererLeftBracePrototype{\textbraceleft}%
|
||||||
|
\def\markdownRendererRightBracePrototype{\textbraceright}%
|
||||||
|
\def\markdownRendererDollarSignPrototype{\textdollar}%
|
||||||
|
\def\markdownRendererPercentSignPrototype{\percent}%
|
||||||
|
\def\markdownRendererUnderscorePrototype{\textunderscore}%
|
||||||
|
\def\markdownRendererCircumflexPrototype{\textcircumflex}%
|
||||||
|
\def\markdownRendererBackslashPrototype{\textbackslash}%
|
||||||
|
\def\markdownRendererTildePrototype{\textasciitilde}%
|
||||||
|
\def\markdownRendererPipePrototype{\char`|}%
|
||||||
|
\def\markdownRendererLinkPrototype#1#2#3#4{%
|
||||||
|
\useURL[#1][#3][][#4]#1\footnote[#1]{\ifx\empty#4\empty\else#4:
|
||||||
|
\fi\tt<\hyphenatedurl{#3}>}}%
|
||||||
|
\usemodule[database]
|
||||||
|
\defineseparatedlist
|
||||||
|
[MarkdownConTeXtCSV]
|
||||||
|
[separator={,},
|
||||||
|
before=\bTABLE,after=\eTABLE,
|
||||||
|
first=\bTR,last=\eTR,
|
||||||
|
left=\bTD,right=\eTD]
|
||||||
|
\def\markdownConTeXtCSV{csv}
|
||||||
|
\def\markdownRendererContentBlockPrototype#1#2#3#4{%
|
||||||
|
\def\markdownConTeXtCSV@arg{#1}%
|
||||||
|
\ifx\markdownConTeXtCSV@arg\markdownConTeXtCSV
|
||||||
|
\placetable[][tab:#1]{#4}{%
|
||||||
|
\processseparatedfile[MarkdownConTeXtCSV][#3]}%
|
||||||
|
\else
|
||||||
|
\markdownInput{#3}%
|
||||||
|
\fi}%
|
||||||
|
\def\markdownRendererImagePrototype#1#2#3#4{%
|
||||||
|
\placefigure[][fig:#1]{#4}{\externalfigure[#3]}}%
|
||||||
|
\def\markdownRendererUlBeginPrototype{\startitemize}%
|
||||||
|
\def\markdownRendererUlBeginTightPrototype{\startitemize[packed]}%
|
||||||
|
\def\markdownRendererUlItemPrototype{\item}%
|
||||||
|
\def\markdownRendererUlEndPrototype{\stopitemize}%
|
||||||
|
\def\markdownRendererUlEndTightPrototype{\stopitemize}%
|
||||||
|
\def\markdownRendererOlBeginPrototype{\startitemize[n]}%
|
||||||
|
\def\markdownRendererOlBeginTightPrototype{\startitemize[packed,n]}%
|
||||||
|
\def\markdownRendererOlItemPrototype{\item}%
|
||||||
|
\def\markdownRendererOlItemWithNumberPrototype#1{\sym{#1.}}%
|
||||||
|
\def\markdownRendererOlEndPrototype{\stopitemize}%
|
||||||
|
\def\markdownRendererOlEndTightPrototype{\stopitemize}%
|
||||||
|
\definedescription
|
||||||
|
[MarkdownConTeXtDlItemPrototype]
|
||||||
|
[location=hanging,
|
||||||
|
margin=standard,
|
||||||
|
headstyle=bold]%
|
||||||
|
\definestartstop
|
||||||
|
[MarkdownConTeXtDlPrototype]
|
||||||
|
[before=\blank,
|
||||||
|
after=\blank]%
|
||||||
|
\definestartstop
|
||||||
|
[MarkdownConTeXtDlTightPrototype]
|
||||||
|
[before=\blank\startpacked,
|
||||||
|
after=\stoppacked\blank]%
|
||||||
|
\def\markdownRendererDlBeginPrototype{%
|
||||||
|
\startMarkdownConTeXtDlPrototype}%
|
||||||
|
\def\markdownRendererDlBeginTightPrototype{%
|
||||||
|
\startMarkdownConTeXtDlTightPrototype}%
|
||||||
|
\def\markdownRendererDlItemPrototype#1{%
|
||||||
|
\startMarkdownConTeXtDlItemPrototype{#1}}%
|
||||||
|
\def\markdownRendererDlItemEndPrototype{%
|
||||||
|
\stopMarkdownConTeXtDlItemPrototype}%
|
||||||
|
\def\markdownRendererDlEndPrototype{%
|
||||||
|
\stopMarkdownConTeXtDlPrototype}%
|
||||||
|
\def\markdownRendererDlEndTightPrototype{%
|
||||||
|
\stopMarkdownConTeXtDlTightPrototype}%
|
||||||
|
\def\markdownRendererEmphasisPrototype#1{{\em#1}}%
|
||||||
|
\def\markdownRendererStrongEmphasisPrototype#1{{\bf#1}}%
|
||||||
|
\def\markdownRendererBlockQuoteBeginPrototype{\startquotation}%
|
||||||
|
\def\markdownRendererBlockQuoteEndPrototype{\stopquotation}%
|
||||||
|
\def\markdownRendererInputVerbatimPrototype#1{\typefile{#1}}%
|
||||||
|
\def\markdownRendererInputFencedCodePrototype#1#2{%
|
||||||
|
\ifx\relax#2\relax
|
||||||
|
\typefile{#1}%
|
||||||
|
\else
|
||||||
|
\typefile[#2][]{#1}%
|
||||||
|
\fi}%
|
||||||
|
\def\markdownRendererHeadingOnePrototype#1{\chapter{#1}}%
|
||||||
|
\def\markdownRendererHeadingTwoPrototype#1{\section{#1}}%
|
||||||
|
\def\markdownRendererHeadingThreePrototype#1{\subsection{#1}}%
|
||||||
|
\def\markdownRendererHeadingFourPrototype#1{\subsubsection{#1}}%
|
||||||
|
\def\markdownRendererHeadingFivePrototype#1{\subsubsubsection{#1}}%
|
||||||
|
\def\markdownRendererHeadingSixPrototype#1{\subsubsubsubsection{#1}}%
|
||||||
|
\def\markdownRendererHorizontalRulePrototype{%
|
||||||
|
\blackrule[height=1pt, width=\hsize]}%
|
||||||
|
\def\markdownRendererFootnotePrototype#1{\footnote{#1}}%
|
||||||
|
\stopmodule\protect
|
||||||
|
\endinput
|
||||||
|
%%
|
||||||
|
%% End of file `t-markdown.tex'.
|
||||||
@@ -3,11 +3,14 @@
|
|||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint"
|
"lint": "next lint",
|
||||||
|
"build:a4": "./scripts/build-latex.sh a4",
|
||||||
|
"build:a5": "./scripts/build-latex.sh a5",
|
||||||
|
"build:a6": "./scripts/build-latex.sh a6"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@react-three/fiber": "^7.0.6",
|
||||||
"next": "^11.1.0",
|
"next": "^11.1.0",
|
||||||
"particlesjs": "^2.2.3",
|
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
"styled-components": "^5.3.1",
|
"styled-components": "^5.3.1",
|
||||||
|
|||||||
@@ -3,6 +3,10 @@ import Head from 'next/head';
|
|||||||
import Background from '../components/Background';
|
import Background from '../components/Background';
|
||||||
import Me from '../components/Me';
|
import Me from '../components/Me';
|
||||||
import Social from '../components/Social';
|
import Social from '../components/Social';
|
||||||
|
import htbLogo from '../public/images/logos/htb.svg';
|
||||||
|
import githubLogo from '../public/images/logos/github.svg';
|
||||||
|
import linkedinLogo from '../public/images/logos/linkedin.svg';
|
||||||
|
import stackOverflowLogo from '../public/images/logos/stackoverflow.svg';
|
||||||
|
|
||||||
const Frontpage: React.FC<{}> = () => {
|
const Frontpage: React.FC<{}> = () => {
|
||||||
return (
|
return (
|
||||||
@@ -19,19 +23,19 @@ const Frontpage: React.FC<{}> = () => {
|
|||||||
sites={[{
|
sites={[{
|
||||||
title: 'Github',
|
title: 'Github',
|
||||||
link: 'https://github.com/morten-olsen',
|
link: 'https://github.com/morten-olsen',
|
||||||
logo: 'github.svg',
|
logo: githubLogo,
|
||||||
}, {
|
}, {
|
||||||
title: 'HackTheBox',
|
title: 'HackTheBox',
|
||||||
link: 'https://app.hackthebox.eu/profile/174098',
|
link: 'https://app.hackthebox.eu/profile/174098',
|
||||||
logo: 'htb.svg',
|
logo: htbLogo,
|
||||||
}, {
|
}, {
|
||||||
title: 'Stack Overflow',
|
title: 'Stack Overflow',
|
||||||
link: 'https://stackoverflow.com/users/1689055/morten-olsen',
|
link: 'https://stackoverflow.com/users/1689055/morten-olsen',
|
||||||
logo: 'stackoverflow.svg',
|
logo: stackOverflowLogo,
|
||||||
}, {
|
}, {
|
||||||
title: 'Linkedin',
|
title: 'Linkedin',
|
||||||
link: 'https://www.linkedin.com/in/mortenolsendk',
|
link: 'https://www.linkedin.com/in/mortenolsendk',
|
||||||
logo: 'linkedin.svg',
|
logo: linkedinLogo,
|
||||||
}]}
|
}]}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
|||||||
10
scripts/build-latex.sh
Executable file
10
scripts/build-latex.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
FORMAT=$1; shift
|
||||||
|
|
||||||
|
docker run \
|
||||||
|
--user "$UID:$GID" \
|
||||||
|
--net=none \
|
||||||
|
-v $(pwd):/var/texlive \
|
||||||
|
blang/latex:ubuntu
|
||||||
|
lualatex "latex/$FORMAT.tex"
|
||||||
55
scripts/update-readme.js
Normal file
55
scripts/update-readme.js
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
const data = require('../data.json');
|
||||||
|
|
||||||
|
const sections = {
|
||||||
|
info: data => `
|
||||||
|
## Basic Info
|
||||||
|
${data.info.map(d => `* **${d.name}**: ${d.value}`).join('\n')}
|
||||||
|
`,
|
||||||
|
text: data => `
|
||||||
|
## ${data.title}
|
||||||
|
|
||||||
|
${data.content}
|
||||||
|
`,
|
||||||
|
skills: data => `
|
||||||
|
## ${data.title}
|
||||||
|
|
||||||
|
${data.description}
|
||||||
|
|
||||||
|
${data.skills.map(d => `* **${d.title}**: ${d.level} `).join('\n')}
|
||||||
|
`,
|
||||||
|
experiences: data => `
|
||||||
|
## ${data.title}
|
||||||
|
|
||||||
|
${data.positions.map(d => `
|
||||||
|
### [${d.company.name}](${d.company.webpage})
|
||||||
|
**${d.title}** _(${d.startDate} - ${d.endDate})_
|
||||||
|
|
||||||
|
${d.description}
|
||||||
|
|
||||||
|
`).join('')}
|
||||||
|
`,
|
||||||
|
projects: data => `
|
||||||
|
## ${data.title}
|
||||||
|
|
||||||
|
${data.description}
|
||||||
|
|
||||||
|
${data.projects.map(d => `
|
||||||
|
**[${d.name}](https://${d.url})**
|
||||||
|
_${d.tagline}_
|
||||||
|
|
||||||
|
${d.description}
|
||||||
|
|
||||||
|
`).join('\n')}
|
||||||
|
`,
|
||||||
|
};
|
||||||
|
|
||||||
|
let document = `
|
||||||
|
|
||||||
|
# Curriculum Vitae
|
||||||
|
|
||||||
|
**[Download the latest version](https://github.com/morten-olsen/curriculum-vitae/releases/latest)**
|
||||||
|
|
||||||
|
${data.map(d => sections[d.type](d.data)).join('\n------\n')}
|
||||||
|
`;
|
||||||
|
|
||||||
|
console.log(document);
|
||||||
86
yarn.lock
86
yarn.lock
@@ -107,6 +107,13 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
regenerator-runtime "^0.13.4"
|
regenerator-runtime "^0.13.4"
|
||||||
|
|
||||||
|
"@babel/runtime@^7.13.10":
|
||||||
|
version "7.15.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.15.3.tgz#2e1c2880ca118e5b2f9988322bd8a7656a32502b"
|
||||||
|
integrity sha512-OvwMLqNXkCXSz1kSm58sEsNuhqOx/fKpnUnKnFB5v8uDda5bLNEHNgKPvhDN6IU0LDcnHQ90LlJ0Q6jnyBSIBA==
|
||||||
|
dependencies:
|
||||||
|
regenerator-runtime "^0.13.4"
|
||||||
|
|
||||||
"@babel/template@^7.14.5":
|
"@babel/template@^7.14.5":
|
||||||
version "7.14.5"
|
version "7.14.5"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.14.5.tgz#a9bc9d8b33354ff6e55a9c60d1109200a68974f4"
|
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.14.5.tgz#a9bc9d8b33354ff6e55a9c60d1109200a68974f4"
|
||||||
@@ -225,6 +232,22 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@napi-rs/triples" "^1.0.3"
|
"@napi-rs/triples" "^1.0.3"
|
||||||
|
|
||||||
|
"@react-three/fiber@^7.0.6":
|
||||||
|
version "7.0.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/@react-three/fiber/-/fiber-7.0.6.tgz#faa5aa5d496ae778a89fe2d3f503428a0e3c841b"
|
||||||
|
integrity sha512-GSMmnk66B/xGGfbSj5lGiZCxGQD0i8rm0Bt/Xp6TD2b9cYe2Lxb2wegU04zIeN89aoUYMHXhL1GNXsZvvOjfUA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
react-merge-refs "^1.1.0"
|
||||||
|
react-reconciler "^0.26.2"
|
||||||
|
react-three-fiber "0.0.0-deprecated"
|
||||||
|
react-use-measure "^2.0.4"
|
||||||
|
resize-observer-polyfill "^1.5.1"
|
||||||
|
scheduler "^0.20.2"
|
||||||
|
use-asset "^1.0.4"
|
||||||
|
utility-types "^3.10.0"
|
||||||
|
zustand "^3.5.1"
|
||||||
|
|
||||||
"@types/hoist-non-react-statics@*":
|
"@types/hoist-non-react-statics@*":
|
||||||
version "3.3.1"
|
version "3.3.1"
|
||||||
resolved "https://registry.yarnpkg.com/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz#1124aafe5118cb591977aeb1ceaaed1070eb039f"
|
resolved "https://registry.yarnpkg.com/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz#1124aafe5118cb591977aeb1ceaaed1070eb039f"
|
||||||
@@ -707,6 +730,11 @@ data-uri-to-buffer@3.0.1:
|
|||||||
resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz#594b8973938c5bc2c33046535785341abc4f3636"
|
resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz#594b8973938c5bc2c33046535785341abc4f3636"
|
||||||
integrity sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og==
|
integrity sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og==
|
||||||
|
|
||||||
|
debounce@^1.2.0:
|
||||||
|
version "1.2.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.1.tgz#38881d8f4166a5c5848020c11827b834bcb3e0a5"
|
||||||
|
integrity sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==
|
||||||
|
|
||||||
debug@2:
|
debug@2:
|
||||||
version "2.6.9"
|
version "2.6.9"
|
||||||
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
|
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
|
||||||
@@ -855,6 +883,11 @@ evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3:
|
|||||||
md5.js "^1.3.4"
|
md5.js "^1.3.4"
|
||||||
safe-buffer "^5.1.1"
|
safe-buffer "^5.1.1"
|
||||||
|
|
||||||
|
fast-deep-equal@^3.1.3:
|
||||||
|
version "3.1.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
|
||||||
|
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
|
||||||
|
|
||||||
fill-range@^7.0.1:
|
fill-range@^7.0.1:
|
||||||
version "7.0.1"
|
version "7.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
|
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
|
||||||
@@ -1506,11 +1539,6 @@ parse-asn1@^5.0.0, parse-asn1@^5.1.5:
|
|||||||
pbkdf2 "^3.0.3"
|
pbkdf2 "^3.0.3"
|
||||||
safe-buffer "^5.1.1"
|
safe-buffer "^5.1.1"
|
||||||
|
|
||||||
particlesjs@^2.2.3:
|
|
||||||
version "2.2.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/particlesjs/-/particlesjs-2.2.3.tgz#4d213ca740679fc1ccc772e8d864b884a091f37e"
|
|
||||||
integrity sha512-f0rL80Agqdsrnv/uhlLewv+LMdiXHu9MYPzMv0ZLPM06nLx3zmAXMH882fxqO6Uzb91csli8WlWaYd2XPN0d/Q==
|
|
||||||
|
|
||||||
path-browserify@0.0.1:
|
path-browserify@0.0.1:
|
||||||
version "0.0.1"
|
version "0.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.1.tgz#e6c4ddd7ed3aa27c68a20cc4e50e1a4ee83bbc4a"
|
resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.1.tgz#e6c4ddd7ed3aa27c68a20cc4e50e1a4ee83bbc4a"
|
||||||
@@ -1678,11 +1706,37 @@ react-is@^16.7.0:
|
|||||||
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
|
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
|
||||||
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
|
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
|
||||||
|
|
||||||
|
react-merge-refs@^1.1.0:
|
||||||
|
version "1.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/react-merge-refs/-/react-merge-refs-1.1.0.tgz#73d88b892c6c68cbb7a66e0800faa374f4c38b06"
|
||||||
|
integrity sha512-alTKsjEL0dKH/ru1Iyn7vliS2QRcBp9zZPGoWxUOvRGWPUYgjo+V01is7p04It6KhgrzhJGnIj9GgX8W4bZoCQ==
|
||||||
|
|
||||||
|
react-reconciler@^0.26.2:
|
||||||
|
version "0.26.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/react-reconciler/-/react-reconciler-0.26.2.tgz#bbad0e2d1309423f76cf3c3309ac6c96e05e9d91"
|
||||||
|
integrity sha512-nK6kgY28HwrMNwDnMui3dvm3rCFjZrcGiuwLc5COUipBK5hWHLOxMJhSnSomirqWwjPBJKV1QcbkI0VJr7Gl1Q==
|
||||||
|
dependencies:
|
||||||
|
loose-envify "^1.1.0"
|
||||||
|
object-assign "^4.1.1"
|
||||||
|
scheduler "^0.20.2"
|
||||||
|
|
||||||
react-refresh@0.8.3:
|
react-refresh@0.8.3:
|
||||||
version "0.8.3"
|
version "0.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.8.3.tgz#721d4657672d400c5e3c75d063c4a85fb2d5d68f"
|
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.8.3.tgz#721d4657672d400c5e3c75d063c4a85fb2d5d68f"
|
||||||
integrity sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==
|
integrity sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==
|
||||||
|
|
||||||
|
react-three-fiber@0.0.0-deprecated:
|
||||||
|
version "0.0.0-deprecated"
|
||||||
|
resolved "https://registry.yarnpkg.com/react-three-fiber/-/react-three-fiber-0.0.0-deprecated.tgz#c737242487d824cf9520307308b7e4c4071a278f"
|
||||||
|
integrity sha512-EblIqTAsIpkYeM8bZtC4lcpTE0A2zCEGipFB52RgcQq/q+0oryrk7Sxt+sqhIjUu6xMNEVywV8dr74lz5yWO6A==
|
||||||
|
|
||||||
|
react-use-measure@^2.0.4:
|
||||||
|
version "2.0.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/react-use-measure/-/react-use-measure-2.0.4.tgz#cb675b36eaeaf3681b94d5f5e08b2a1e081fedc9"
|
||||||
|
integrity sha512-7K2HIGaPMl3Q9ZQiEVjen3tRXl4UDda8LiTPy/QxP8dP2rl5gPBhf7mMH6MVjjRNv3loU7sNzey/ycPNnHVTxQ==
|
||||||
|
dependencies:
|
||||||
|
debounce "^1.2.0"
|
||||||
|
|
||||||
react@^17.0.2:
|
react@^17.0.2:
|
||||||
version "17.0.2"
|
version "17.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037"
|
resolved "https://registry.yarnpkg.com/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037"
|
||||||
@@ -1725,6 +1779,11 @@ regenerator-runtime@^0.13.4:
|
|||||||
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52"
|
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52"
|
||||||
integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==
|
integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==
|
||||||
|
|
||||||
|
resize-observer-polyfill@^1.5.1:
|
||||||
|
version "1.5.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz#0e9020dd3d21024458d4ebd27e23e40269810464"
|
||||||
|
integrity sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==
|
||||||
|
|
||||||
ripemd160@^2.0.0, ripemd160@^2.0.1:
|
ripemd160@^2.0.0, ripemd160@^2.0.1:
|
||||||
version "2.0.2"
|
version "2.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c"
|
resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c"
|
||||||
@@ -2068,6 +2127,13 @@ url@^0.11.0:
|
|||||||
punycode "1.3.2"
|
punycode "1.3.2"
|
||||||
querystring "0.2.0"
|
querystring "0.2.0"
|
||||||
|
|
||||||
|
use-asset@^1.0.4:
|
||||||
|
version "1.0.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/use-asset/-/use-asset-1.0.4.tgz#506caafc29f602890593799e58b577b70293a6e2"
|
||||||
|
integrity sha512-7/hqDrWa0iMnCoET9W1T07EmD4Eg/Wmoj/X8TGBc++ECRK4m5yTsjP4O6s0yagbxfqIOuUkIxe2/sA+VR2GxZA==
|
||||||
|
dependencies:
|
||||||
|
fast-deep-equal "^3.1.3"
|
||||||
|
|
||||||
use-subscription@1.5.1:
|
use-subscription@1.5.1:
|
||||||
version "1.5.1"
|
version "1.5.1"
|
||||||
resolved "https://registry.yarnpkg.com/use-subscription/-/use-subscription-1.5.1.tgz#73501107f02fad84c6dd57965beb0b75c68c42d1"
|
resolved "https://registry.yarnpkg.com/use-subscription/-/use-subscription-1.5.1.tgz#73501107f02fad84c6dd57965beb0b75c68c42d1"
|
||||||
@@ -2118,6 +2184,11 @@ util@^0.12.0:
|
|||||||
safe-buffer "^5.1.2"
|
safe-buffer "^5.1.2"
|
||||||
which-typed-array "^1.1.2"
|
which-typed-array "^1.1.2"
|
||||||
|
|
||||||
|
utility-types@^3.10.0:
|
||||||
|
version "3.10.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/utility-types/-/utility-types-3.10.0.tgz#ea4148f9a741015f05ed74fd615e1d20e6bed82b"
|
||||||
|
integrity sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==
|
||||||
|
|
||||||
vm-browserify@1.1.2, vm-browserify@^1.0.1:
|
vm-browserify@1.1.2, vm-browserify@^1.0.1:
|
||||||
version "1.1.2"
|
version "1.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"
|
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"
|
||||||
@@ -2177,3 +2248,8 @@ yocto-queue@^0.1.0:
|
|||||||
version "0.1.0"
|
version "0.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
|
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
|
||||||
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
|
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
|
||||||
|
|
||||||
|
zustand@^3.5.1:
|
||||||
|
version "3.5.9"
|
||||||
|
resolved "https://registry.yarnpkg.com/zustand/-/zustand-3.5.9.tgz#93fcf9eb29d10bc7fc37bdb5806464af516e7da9"
|
||||||
|
integrity sha512-ELj8XLrf5TZoiffbsZKaJ0uGnT1t4PGU9IgFLfiLsjMhOXFfKEl3fEUa5mNAWTzrietJuA1R2YY6GBE1siyE5Q==
|
||||||
|
|||||||
Reference in New Issue
Block a user