Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

解答例の折りたたみを実現 #64

Merged
merged 2 commits into from
Apr 11, 2016
Merged

解答例の折りたたみを実現 #64

merged 2 commits into from
Apr 11, 2016

Conversation

kmizu
Copy link
Contributor

@kmizu kmizu commented Apr 11, 2016

<!-- section id=".*" style=".*" -->

が現れたら、

<div id="$1" style="$2">

に置き換え

<!-- endsection -->

が現れたら、

</div>

に置き換え

  • 綺麗ではないが、regexplaceを使えばmarkdownをHTMLのブロック要素で簡単に囲むことができる

@kmizu
Copy link
Contributor Author

kmizu commented Apr 11, 2016

ref #63

@kmizu
Copy link
Contributor Author

kmizu commented Apr 11, 2016

fold-unfold

@kmizu
Copy link
Contributor Author

kmizu commented Apr 11, 2016

<!-- exercise id=".*" style=".*" -->
...
<!-- endexercise -->

を置換するようにした方が意図が明確になって良い、かもしれない。

@xuwei-k
Copy link
Contributor

xuwei-k commented Apr 11, 2016

自分のあの酷いやつよりは普通によさそうだし、ひとまず動くならmergeでよさそう。

epub版の場合を確認しておかないと、最悪答えがずっと見れない、みたいなことになりそうだけど、まぁhtml版の優先度高めでその確認含めて後でいいか(?)

@kmizu
Copy link
Contributor Author

kmizu commented Apr 11, 2016

では、マージします。

@kmizu kmizu merged commit 260b598 into scala-text:master Apr 11, 2016
@kmizu kmizu deleted the fold-answer branch April 11, 2016 14:36
@xuwei-k
Copy link
Contributor

xuwei-k commented Apr 12, 2016

epubでも普通にボタン押せて機能した 🎉

(epubのリーダーの種類による可能性はあるが、少なくともiPadのiBooksでは動いた)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants