123456789101112131415161718192021222324252627 |
- namespace GtkCommonMark.NodeActions {
- public class Quote : SimpleNodeAction {
- public Quote(NodeInfo node) {
- base(node);
- }
- public override Gtk.TextTag get_tag(TagManager tags) {
- return tags.get_blockquote(self_nested_count());
- }
- public override void at_start(Gtk.TextBuffer buffer, ref Gtk.TextIter iter) {
- var glyph = buffer.create_tag(null);
- glyph.weight = 200;
- glyph.scale = 2;
- buffer.insert_with_tags(ref iter, "“\t", -1, glyph);
- }
- public override void at_end(Gtk.TextBuffer buffer, ref Gtk.TextIter iter) {
- // buffer.insert(ref iter, @"\nQL-$(self_nested_count())\n", -1);
- }
- }
- }
|