File: entity_test.md

package info (click to toggle)
ruby-maruku 0.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,232 kB
  • sloc: ruby: 6,497; makefile: 6; sh: 3
file content (23 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

List of symbols supported by Maruku
===================================

<?maruku
	MaRuKu::Out::Latex.need_entity_table

	all = []
	ENTITY_TABLE.each do |k, e|
		if k.kind_of? String
			all << (h=md_code("&#{e.html_entity};")) <<
				" " << md_entity(e.html_entity) <<
				" (" << (l=md_code(e.latex_string)) << ") \n" <<
				md_entity('nbsp')<<md_entity('nbsp')<<md_entity('nbsp')
				
			h.attributes[:code_background_color] = '#eef'
			l.attributes[:code_background_color] = '#ffe'
		end
	end
	@doc.children.push md_par(all)
			
?>