File: entity_test.md

package info (click to toggle)
ruby-maruku 0.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,296 kB
  • ctags: 492
  • sloc: ruby: 5,726; xml: 235; makefile: 2
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)
			
?>