Skip to content

Instantly share code, notes, and snippets.

@hebory
hebory / 161107_03.md
Created June 15, 2025 06:45 — forked from dvmoomoodv/161107_03.md
내가 생각하는 최고의 마크다운(marked.js를 마개조해 보았다)

##시작하며 간단한 메모를 적는데에 편리한 마크다운은 전 세계적으로 쓰이고 있고, 저도 자주 쓰고있습니다.

다만, 최근에 마크다운에서 쓰는 글자에 색을 붙여보고 싶다는 마음에 여러모로 조사해봤습니다. (HTML의 사양서1를 작성해본다던지...)

내가 마크다운을 변환해서 만드는편이 빠르지 않을까? 하고 고민하다가 딴길로 새기도 했습니다만, 최종적으로 JavaScript의 라이브러리를 개조하는 방법으로 결론을 내렸습니다.

##Markdown의 JavaScript 라이브러리들

#ifdef UNICODE
typedef std::wstring tstring;
typedef std::wostream tostream;
typedef std::wofstream tofstream;
typedef std::wostringstream tostringstream;
typedef std::wistringstream tistringstream;
typedef std::wstringstream tstringstream;
typedef std::wstreambuf tstreambuf;
#define tcin wcin
using UnityEngine;
public class Singleton<T> : MonoBehaviour where T : Singleton<T>
{
private static T inst;
protected static Singleton<T> Instance
{
get
{
if (!inst)
@hebory
hebory / Easing.cs
Last active December 21, 2015 09:07
Easing 함수 모음
/// https://code.google.com/p/itween/source/browse/trunk/com/pixelplacement/itween/iTween.cs?r=303
using UnityEngine;
/// <summary>
/// Easing 함수 모음
/// </summary>
/// <remarks>
/// http://easings.net/
/// </remarks>
public static class Easing
@hebory
hebory / ExportMeshFilterInspector.cs
Last active December 21, 2015 08:38
from unity meshfilter to asset
using UnityEngine;
using UnityEditor;
[CustomEditor(typeof(MeshFilter))]
public class ExportMeshFilterInspector : Editor
{
bool is_optimize = true;
public override void OnInspectorGUI()
{
base.DrawDefaultInspector();