Giter Site home page Giter Site logo

yamd's Introduction

yamd's People

Contributors

dependabot[bot] avatar logico-philosophical avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

dragonhailstone

yamd's Issues

속성 리스트를 () 말고 <>로 감싸자

다음과 같은 경우가 많이 발생하고 있다.

[$(x+1)^2 + y^2 = 9]

[;(1 + 2) * 3]

<>는 덜할 것이다. HTML을 쓸 때는 문제가 될 것이다. HTML은 이미 가변 경계 때문에 문제가 되고 있으니 문제를 HTML에 몰아버리는 것도 괜찮을 것이다. 가변 경계를 위한 패딩으로 쓰이는 문자와 속성 리스트의 경계로 쓰이는 문자가 같아지는 것이 #42 에 어떤 영향을 미치는지는 모르겠다.

「어쩌구 저쩌구」

['(type=angle)asdf] -> 〈asdf〉 (U+3008, U+3009)
["(type=angle)asdf] -> 《asdf》 (U+300A, U+300B)
['(type=corner)asdf] -> 「asdf」 (U+300C, U+300D)
["(type=corner)asdf] -> 『asdf』 (U+300E, U+300F)

「asdf」의 경우는 대응하는 반각문자가 있으나 다른 것들은 없으므로 전부 전각으로 하겠음.

„Gänsefüßchen“이나 »Guillemets« 같은 표기도 있는데(https://en.wikipedia.org/wiki/Quotation_mark#Summary_table) 이것들은 나중에 하기로 하자...

`` ` `` -> `<`>`

이제 [[...]][<...>]를 하면서 [...]에서 trim 문제는 없어졋다 할 수 잇음
근데 `...`는 어쩔것?

지금 [`[%hi]] 같은 표현이 가능한데 이러면 안될듯

지금의 코드를 보면 이렇게 되어 있음

tags['grave'] = r => {
	if (r.text || r.html)
		throw new Error('Input to void element');

	return text('`');
};

여기서 r은 이미 렌더링 된 text/html content라고 할 수 있음. 그리고

tags['comment'] = r => text('');

라서 [`[%hi]]라고 치면 에러가 안뜨는데 이러면 안댈듯

태그 이름이 없는 요소가 에러를 던지지 않도록 하자

[어쩌구]라고 치면 에러가 나는데 텍스트 [어쩌구]가 되게 하자. 괄호 쌍이 맞을 경우 []를 이스케이프 하지 않아도 되는 이점이 있을 수 있다.

  • [어쩌구][어쩌구]
  • [$[0, \infty]] → (수식)

몇 가지 해결해야 하는 부분:

  • [어쩌구 [*저쩌구]]의 렌더링.
  • [(foo=bar)어쩌구]의 렌더링.
  • [(foo=[)어쩌구]의 렌더링.
  • [(foo=[asdf])어쩌구]의 렌더링.

[>(type=info)]

[>(type=info)...] -> <blockquote class="m42kup-bq-info">...</blockquote>
[>(type=warn)...] -> <blockquote class="m42kup-bq-warn">...</blockquote>
[>(type=anythingelse)...] -> <blockquote>...</blockquote>
[>(type=)...] -> <blockquote>...</blockquote>

gogogo

클라이언트사이드에서 필요한 CSS 등을 추가해야댐

지금 렌더러 JS만 있는데 CSS도 있어야댐
그리고 렌더러가 클라이언트사이드에서도 돌아갈 수 있도록 되어 있는데 이때 KaTeXhighlight.js도 있어야댐
그리고 클라이언트사이드에서 돌릴거면 src/dist/ 만들어서 uglify-esbabel.js 등을 해야댐
왜냐면 arrow function을 썼기 때문임
ㅇㅈ? ㅇㅇㅈ

table

어떻게 만들어야 할지?

th

split 마커에 속성을 넣을 수 있도록 하셈

데모 페이지에서 발생하는 오류를 고치자

[ol
Uncaught TypeError: c.toIndentedString is not a function
    at eval (nodes.js:359)
    at Array.map (<anonymous>)
    at r (nodes.js:359)
    at Element.toIndentedString (nodes.js:360)
    at eval (nodes.js:359)
    at Array.map (<anonymous>)
    at r (nodes.js:359)
    at Element.toIndentedString (nodes.js:360)
    at Element.toString (nodes.js:344)
    at demo.html:207

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.